ra-tls: fix the bind address already in use problem
@@ -31,6 +31,7 @@ import (
"fmt"
"github.com/urfave/cli"
"net"
+ "syscall"
)
const (
@@ -68,6 +69,8 @@ EXAMPLE:
addr = defaultAddress
}
+ syscall.Unlink(addr)
+
ln, err := net.Listen("unix", addr)
if err != nil {
return err
