From 7c86629d3b164c9fd79dc43ba894ed5c8938446e Mon Sep 17 00:00:00 2001 From: Marc Pervaz Boocha Date: Sat, 2 Aug 2025 21:51:53 +0530 Subject: Fixes: Misc Fixes and Doc improvements --- http/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'http/server.go') 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(), -- cgit v1.2.3-70-g09d2