Remove all listeners from IPv6 interface

This commit is contained in:
Alexey Khit
2023-07-17 12:53:34 +03:00
parent 14ed1cdee8
commit e4b68518e5
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ func NewServer(name string) *Server {
func (s *Server) Serve(address string) (err error) {
var ln net.Listener
if ln, err = net.Listen("tcp", address); err != nil {
if ln, err = net.Listen("tcp4", address); err != nil {
return
}