fix(handlers): update listener to bind on all interfaces instead of localhost

Fixed: #2640
This commit is contained in:
Luis Pater
2026-04-10 07:24:34 +08:00
parent 39dc4557c1
commit f32c8c9620

View File

@@ -142,7 +142,7 @@ func startCallbackForwarder(port int, provider, targetBase string) (*callbackFor
stopForwarderInstance(port, prev)
}
addr := fmt.Sprintf("127.0.0.1:%d", port)
addr := fmt.Sprintf("0.0.0.0:%d", port)
ln, err := net.Listen("tcp", addr)
if err != nil {
return nil, fmt.Errorf("failed to listen on %s: %w", addr, err)