add network for node

This commit is contained in:
ginuerzh committed 2023-10-09 21:26:41 +08:00
1 parent bf3b76a273
commit 4525630abb
2 files changed
+14

No files matched your search

+7
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 {