mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Any address in the range 127.0.0.0/8 is a valid loopback address
This commit is contained in:
parent
cc44512539
commit
accb78271e
1 changed files with 2 additions and 2 deletions
|
@ -860,8 +860,8 @@ def _domain_is_resolved_locally(public_ip, domain):
|
||||||
logger.debug("Couldn't get domain '%s' ip because: %s" % (domain, e))
|
logger.debug("Couldn't get domain '%s' ip because: %s" % (domain, e))
|
||||||
return False
|
return False
|
||||||
|
|
||||||
logger.debug("Domain '%s' ip is %s, except it to be 127.0.0.1 or %s" % (domain, ip, public_ip))
|
logger.debug("Domain '%s' IP address is resolved to %s, expect it to be %s or in the 127.0.0.0/8 address block" % (domain, public_ip, ip))
|
||||||
return ip in ["127.0.0.1", public_ip]
|
return ip.startswith("127.") or ip == public_ip
|
||||||
|
|
||||||
|
|
||||||
def _name_self_CA():
|
def _name_self_CA():
|
||||||
|
|
Loading…
Add table
Reference in a new issue