diff --git a/listener_unix.go b/listener_unix.go index 956c84890..18fde857a 100644 --- a/listener_unix.go +++ b/listener_unix.go @@ -58,6 +58,7 @@ func (ln *listener) normalize() (err error) { ln.fd, ln.addr, err = socket.UDPSocket(ln.network, ln.address, false, ln.sockOpts...) ln.network = "udp" case "unix": + _ = os.RemoveAll(ln.address) ln.fd, ln.addr, err = socket.UnixSocket(ln.network, ln.address, true, ln.sockOpts...) default: err = errors.ErrUnsupportedProtocol