Listen on IPv4 and IPv6

This commit is contained in:
stackcoder
2023-03-17 14:32:44 +01:00
committed by GitHub
parent fd8152f7a4
commit 30e30117a1

View File

@@ -63,7 +63,7 @@ func (s *Server) ListenAndServe() error {
srv := &http.Server{}
listener, err := net.Listen("tcp4", s.Bind)
listener, err := net.Listen("tcp", s.Bind)
if err != nil {
return err
}