mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Removing check for ssowat header when testing HTTP reachability
This commit is contained in:
parent
dc731c3af5
commit
fb29bb879b
1 changed files with 0 additions and 6 deletions
|
@ -731,13 +731,7 @@ def _dns_ip_match_public_ip(public_ip, domain):
|
|||
|
||||
def _domain_is_accessible_through_HTTP(ip, domain):
|
||||
try:
|
||||
# Check HTTP reachability
|
||||
requests.head("http://" + ip, headers={"Host": domain})
|
||||
|
||||
# Check we got the ssowat header (in HTTPS)
|
||||
r = requests.head("https://" + ip, headers={"Host": domain}, verify=False)
|
||||
if "x-sso-wat" not in r.headers.keys():
|
||||
return False
|
||||
except Exception:
|
||||
return False
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue