Skip to content

Commit

Permalink
Update generate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
endail authored Jun 26, 2024
1 parent e9f3aea commit 9728661
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
for endpoint in server["endpoints"]:
print("Checking " + endpoint + "...")

result = subprocess.run(["nslookup", endpoint, "1.1.1.1"], timeout=5)
result = subprocess.run(["nslookup", endpoint, "1.1.1.1"], capture_output=True, text=True, timeout=5)
print("DNS: " + "OK" if result.returncode == 0 else "Fail")

if result.returncode != 0:
Expand Down

0 comments on commit 9728661

Please sign in to comment.