mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-11-03 17:22:20 +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:
1 parent
30f286a813
commit
024cbdd7f6
1 file changed
+1
-2
+1
-2
@@ -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