From b151d4626ad61adb1dd20e289253cae1ce4e641c Mon Sep 17 00:00:00 2001 From: niksis02 Date: Fri, 3 Apr 2026 21:04:03 +0400 Subject: [PATCH] fix: fix webui port validation to allow unix socket paths Fixes #2009 The webui address validation loop called net.SplitHostPort on every address without first checking whether it was a unix socket path, causing an error for unix domain socket paths. The fix includes skipping the host:port validation for unix socket paths for webui. --- cmd/versitygw/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/versitygw/main.go b/cmd/versitygw/main.go index d16f5fb4..0e05ca72 100644 --- a/cmd/versitygw/main.go +++ b/cmd/versitygw/main.go @@ -1113,6 +1113,9 @@ func runGateway(ctx context.Context, be backend.Backend) error { if len(webuiPorts) > 0 { // Validate all webui addresses for _, addr := range webuiPorts { + if utils.IsUnixSocketPath(addr) { + continue + } _, webPrt, err := net.SplitHostPort(addr) if err != nil { return fmt.Errorf("webui listen address must be in the form ':port' or 'host:port': %w", err)