all repos — website @ c88f5f3a36b2f540ea54789c76b143167f52e3f4

My website

don't munge listen address (was listenfd workaround)
Alan Pearce alan@alanpearce.eu
Sun, 08 Dec 2024 19:39:25 +0100
commit

c88f5f3a36b2f540ea54789c76b143167f52e3f4

parent

46241ba82f5b6d23e0c531f4fce033a5c102004d

1 files changed, 0 insertions(+), 4 deletions(-)

jump to
M cmd/server/main.gocmd/server/main.go
@@ -25,10 +25,6 @@ panic("parsing runtime configuration" + err.Error()) 	}
 	log := log.Configure(!runtimeConfig.Development)
 
-	if listenAddress := runtimeConfig.ListenAddress; listenAddress[0] == '[' {
-		runtimeConfig.ListenAddress = listenAddress[1 : len(listenAddress)-1]
-	}
-
 	if runtimeConfig.Development {
 		tmpdir, err := os.MkdirTemp("", "website")
 		if err != nil {