mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-03-28 17:42:45 +01:00
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:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user