mirror of
https://github.com/smittix/intercept.git
synced 2026-07-25 09:18:10 -07:00
Add debug output to service check
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
+3
-2
@@ -11991,10 +11991,11 @@ def check_dump1090_service():
|
|||||||
sock.settimeout(2)
|
sock.settimeout(2)
|
||||||
result = sock.connect_ex(('localhost', 30003))
|
result = sock.connect_ex(('localhost', 30003))
|
||||||
sock.close()
|
sock.close()
|
||||||
|
print(f"[ADS-B] Service check: port 30003 connect result = {result}")
|
||||||
if result == 0:
|
if result == 0:
|
||||||
return 'localhost:30003'
|
return 'localhost:30003'
|
||||||
except:
|
except Exception as e:
|
||||||
pass
|
print(f"[ADS-B] Service check error: {e}")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user