diff options
Diffstat (limited to 'internal/server/server.go')
-rw-r--r-- | internal/server/server.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/server/server.go b/internal/server/server.go index 1512632..00cc022 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -61,13 +61,15 @@ func applyDevModeOverrides(config *cfg.Config, runtimeConfig *Config) { config.Domains = []string{runtimeConfig.ListenAddress} } scheme := "http" + port := runtimeConfig.Port if runtimeConfig.TLS { scheme = "https" + port = runtimeConfig.TLSPort } config.BaseURL = cfg.URL{ URL: &url.URL{ Scheme: scheme, - Host: runtimeConfig.ListenAddress, + Host: net.JoinHostPort(config.Domains[0], strconv.Itoa(port)), }, } } |