1 parent 4385314 commit d5cde77Copy full SHA for d5cde77
1 file changed
internal/modules/gobot/bot.go
@@ -308,7 +308,7 @@ func StartBot() error {
308
// Start HTTP API server in background BEFORE command registration
309
// This ensures the API is available immediately for subprocesses (like lite scan)
310
// Command registration can take 2+ minutes, so we start the API first
311
- apiHostEnv := getEnv("API_HOST", "localhost")
+ apiHostEnv := getEnv("API_HOST", "0.0.0.0")
312
apiPortEnv := getEnv("API_PORT", "8000")
313
router := setupAPI()
314
apiAddr := fmt.Sprintf("%s:%s", apiHostEnv, apiPortEnv)
0 commit comments