From 38276ab8622793a01fb5e037a6f189616d163c4a Mon Sep 17 00:00:00 2001 From: niksis02 Date: Tue, 3 Mar 2026 13:25:38 +0400 Subject: [PATCH] fix: fixes webserver network type Fixes #1917 When the `--webui` flag uses `localhost:`, the hostname `localhost` resolves to both IPv6 and IPv4 addresses. Previously, the Fiber web server was initialized without an explicit network setting, and Fiber defaults to `tcp4` (IPv4-only). Because `tcp4` cannot bind to IPv6 addresses, any resolved IPv6 address (e.g., `::1`) was treated as invalid for the listener. The network mode is now changed to `tcp`, which enables dual-stack behavior and allows binding to both IPv4 and IPv6 addresses. --- webui/webserver.go | 1 + 1 file changed, 1 insertion(+) diff --git a/webui/webserver.go b/webui/webserver.go index 0184a8a6..0f63a560 100644 --- a/webui/webserver.go +++ b/webui/webserver.go @@ -61,6 +61,7 @@ func NewServer(cfg *ServerConfig, opts ...Option) *Server { AppName: "versitygw", ServerHeader: "VERSITYGW", DisableStartupMessage: true, + Network: fiber.NetworkTCP, }) server := &Server{