fix: Use MC_BRIDGE_URL config instead of non-existent host/port

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
MarekWo
2026-01-09 13:33:02 +01:00
parent 30f286a813
commit 024cbdd7f6

View File

@@ -88,9 +88,8 @@ def handle_send_command(data):
# Execute command via bridge HTTP API
def execute_and_respond():
try:
bridge_url = f"http://{config.MC_BRIDGE_HOST}:{config.MC_BRIDGE_PORT}/cli"
response = requests.post(
bridge_url,
config.MC_BRIDGE_URL,
json={'command': command},
timeout=30
)