diff options
Diffstat (limited to 'http/server.go')
-rw-r--r-- | http/server.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/http/server.go b/http/server.go index e13bc67..dc74008 100644 --- a/http/server.go +++ b/http/server.go @@ -48,7 +48,7 @@ func (ls Listeners) CloseAll() error { // Address is the socket address, e.g., ":8080". type ServerConfig struct { Network string `toml:"network"` - Address string `toml:"network"` + Address string `toml:"address"` } // OpenConfigListeners opens network listeners as specified by the provided ServerConfig slice. @@ -105,7 +105,7 @@ func RunHTTPServers(ctx context.Context, lns Listeners, handler http.Handler) er for _, ln := range lns { g.Go(func() error { - logger, ctx := logging.With(ctx, "address", ln.Addr) + logger, ctx := logging.With(ctx, "address", ln.Addr()) srv := &http.Server{ Addr: ln.Addr().String(), |