mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Use Yunohost's server instead of tmp server
This commit is contained in:
parent
b5c38bf031
commit
cfabb83c0e
2 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ class PortsDiagnoser(Diagnoser):
|
||||||
ports = [22, 25, 53, 80, 443, 587, 993, 5222, 5269]
|
ports = [22, 25, 53, 80, 443, 587, 993, 5222, 5269]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
r = requests.post('https://ynhdiagnoser.netlib.re/check-ports', json={'ports': ports}, timeout=30).json()
|
r = requests.post('https://diagnosis.yunohost.org/check-ports', json={'ports': ports}, timeout=30).json()
|
||||||
if "status" not in r.keys():
|
if "status" not in r.keys():
|
||||||
raise Exception("Bad syntax for response ? Raw json: %s" % str(r))
|
raise Exception("Bad syntax for response ? Raw json: %s" % str(r))
|
||||||
elif r["status"] == "error":
|
elif r["status"] == "error":
|
||||||
|
|
|
@ -28,7 +28,7 @@ class HttpDiagnoser(Diagnoser):
|
||||||
os.system("touch /tmp/.well-known/ynh-diagnosis/%s" % nonce)
|
os.system("touch /tmp/.well-known/ynh-diagnosis/%s" % nonce)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
r = requests.post('https://ynhdiagnoser.netlib.re/check-http', json={'domain': domain, "nonce": nonce}, timeout=30).json()
|
r = requests.post('https://diagnosis.yunohost.org/check-http', json={'domain': domain, "nonce": nonce}, timeout=30).json()
|
||||||
if "status" not in r.keys():
|
if "status" not in r.keys():
|
||||||
raise Exception("Bad syntax for response ? Raw json: %s" % str(r))
|
raise Exception("Bad syntax for response ? Raw json: %s" % str(r))
|
||||||
elif r["status"] == "error" and ("code" not in r.keys() or r["code"] not in ["error_http_check_connection_error", "error_http_check_unknown_error"]):
|
elif r["status"] == "error" and ("code" not in r.keys() or r["code"] not in ["error_http_check_connection_error", "error_http_check_unknown_error"]):
|
||||||
|
|
Loading…
Add table
Reference in a new issue