Merge pull request #2014 from versity/sis/webui-unix-socket

fix: fix webui port validation to allow unix socket paths
This commit is contained in:
Ben McClelland
2026-04-03 13:19:52 -07:00
committed by GitHub
+3
View File
@@ -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)