Skip to content

Commit d5cde77

Browse files
committed
fix: allow external API connections in bot mode for Docker/Dokploy
1 parent 4385314 commit d5cde77

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/modules/gobot/bot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ func StartBot() error {
308308
// Start HTTP API server in background BEFORE command registration
309309
// This ensures the API is available immediately for subprocesses (like lite scan)
310310
// Command registration can take 2+ minutes, so we start the API first
311-
apiHostEnv := getEnv("API_HOST", "localhost")
311+
apiHostEnv := getEnv("API_HOST", "0.0.0.0")
312312
apiPortEnv := getEnv("API_PORT", "8000")
313313
router := setupAPI()
314314
apiAddr := fmt.Sprintf("%s:%s", apiHostEnv, apiPortEnv)

0 commit comments

Comments
 (0)