about summary refs log tree commit diff stats
path: root/cmd/server/main.go
diff options
context:
space:
mode:
authorAlan Pearce2024-12-08 19:39:25 +0100
committerAlan Pearce2024-12-08 19:39:25 +0100
commitc88f5f3a36b2f540ea54789c76b143167f52e3f4 (patch)
tree50db44cd67921e00632638ff7b43d24e77c9951c /cmd/server/main.go
parent46241ba82f5b6d23e0c531f4fce033a5c102004d (diff)
downloadwebsite-c88f5f3a36b2f540ea54789c76b143167f52e3f4.tar.lz
website-c88f5f3a36b2f540ea54789c76b143167f52e3f4.tar.zst
website-c88f5f3a36b2f540ea54789c76b143167f52e3f4.zip
don't munge listen address (was listenfd workaround)
Diffstat (limited to 'cmd/server/main.go')
-rw-r--r--cmd/server/main.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/cmd/server/main.go b/cmd/server/main.go
index 21d8e89..ddf3426 100644
--- a/cmd/server/main.go
+++ b/cmd/server/main.go
@@ -25,10 +25,6 @@ func main() {
 	}
 	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 {