Blind redirect if https port enabled

pull/375/head
npoh 💻 2024-02-05 21:41:22 +05:30
parent 24eb1918bf
commit 857d9090a4
No known key found for this signature in database
GPG Key ID: B36C0EC643ABAE85
1 changed files with 3 additions and 5 deletions

View File

@ -248,11 +248,9 @@ class MixinHandler(object):
return True
if context._orig_protocol == 'http':
if redirecting and not is_ip_hostname(hostname):
ip_address = to_ip_address(ip)
if not ip_address.is_private:
# redirecting
return False
if redirecting:
# redirecting
return False
if options.fbidhttp:
if ip_address is None: