diff options
Diffstat (limited to 'internal/server/tcp.go')
-rw-r--r-- | internal/server/tcp.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/server/tcp.go b/internal/server/tcp.go index 1d57c9c..14eb9e6 100644 --- a/internal/server/tcp.go +++ b/internal/server/tcp.go @@ -9,12 +9,12 @@ import ( func (s *Server) serveTCP() error { l, err := listenfd.GetListener(0, - net.JoinHostPort(s.runtimeConfig.ListenAddress, strconv.Itoa(s.runtimeConfig.Port)), + net.JoinHostPort(s.options.ListenAddress, strconv.Itoa(s.options.Port)), s.log.Named("tcp.listenfd"), ) if err != nil { return err } - return s.Serve(l) + return s.server.Serve(l) } |