add network for node

This commit is contained in:
ginuerzh
2023-10-09 21:26:41 +08:00
parent bf3b76a273
commit 4525630abb
2 changed files with 14 additions and 0 deletions

View File

@ -47,6 +47,13 @@ func (d *NetDialer) Dial(ctx context.Context, network, addr string) (conn net.Co
log = logger.Default()
}
switch network {
case "unix":
netd := net.Dialer{}
return netd.DialContext(ctx, network, addr)
default:
}
deadline := time.Now().Add(timeout)
ifces := strings.Split(d.Interface, ",")
for _, ifce := range ifces {