From 68f44078c5a77120209d74dca45c4ffab52a2c9e Mon Sep 17 00:00:00 2001 From: 3xp10it <3xp10it@users.noreply.github.com> Date: Wed, 23 Aug 2017 15:52:24 +0800 Subject: [PATCH] Update option.py --- lib/core/option.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/option.py b/lib/core/option.py index de968e993..815fa0d02 100755 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -334,7 +334,7 @@ def _feedTargetsDict(reqFile, addedTargetUrls): hostPattern=host.replace(".","\.") if (conf.forceSSL or re.search(r"host:[^\n\r]*%s:%s[\s\S]*referer:[^\n\r]*https://%s:%s.*" % (hostPattern, port, hostPattern, port), request, re.I) - or (port != 80 + or (port != "80" and re.search(r"host:[^\n\r]*%s:%s[\s\S]*referer:[^\n\r]*https://.*cdn.*" % (hostPattern, port), request, re.I))): scheme = "https"