about summary refs log tree commit diff stats
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/build/main.go2
-rw-r--r--cmd/server/main.go6
2 files changed, 6 insertions, 2 deletions
diff --git a/cmd/build/main.go b/cmd/build/main.go
index 39cbc1b..84de2dc 100644
--- a/cmd/build/main.go
+++ b/cmd/build/main.go
@@ -6,7 +6,7 @@ import (
 
 	"go.alanpearce.eu/website/internal/builder"
 	"go.alanpearce.eu/website/internal/config"
-	"go.alanpearce.eu/website/internal/log"
+	"go.alanpearce.eu/x/log"
 
 	"github.com/ardanlabs/conf/v3"
 	"gitlab.com/tozd/go/errors"
diff --git a/cmd/server/main.go b/cmd/server/main.go
index b74a0cc..be36e3b 100644
--- a/cmd/server/main.go
+++ b/cmd/server/main.go
@@ -6,8 +6,8 @@ import (
 	"os"
 	"os/signal"
 
-	"go.alanpearce.eu/website/internal/log"
 	"go.alanpearce.eu/website/internal/server"
+	"go.alanpearce.eu/x/log"
 
 	"github.com/ardanlabs/conf/v3"
 	"gitlab.com/tozd/go/errors"
@@ -25,6 +25,10 @@ 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 {