Update option.py

This commit is contained in:
3xp10it 2017-08-23 15:52:24 +08:00 committed by GitHub
parent 76cc25d470
commit 68f44078c5

View File

@ -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"