mirror of
https://github.com/smittix/intercept.git
synced 2026-04-24 06:40:00 -07:00
Add forceService option to bypass 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:
@@ -12013,9 +12013,16 @@ def start_adsb():
|
||||
data = request.json or {}
|
||||
gain = data.get('gain', '40')
|
||||
device = data.get('device', '0')
|
||||
force_service = data.get('forceService', False)
|
||||
|
||||
# First check if dump1090 is already running as a service with SBS port
|
||||
service_addr = check_dump1090_service()
|
||||
|
||||
# Allow forcing service mode even if check fails
|
||||
if force_service and not service_addr:
|
||||
print("[ADS-B] Force service mode enabled, using localhost:30003")
|
||||
service_addr = 'localhost:30003'
|
||||
|
||||
if service_addr:
|
||||
print(f"[ADS-B] Using existing dump1090 service SBS port at {service_addr}")
|
||||
adsb_using_service = True
|
||||
|
||||
Reference in New Issue
Block a user