add keepalive for websocket

This commit is contained in:
ginuerzh
2022-03-03 22:21:38 +08:00
parent b96d37d4cc
commit 8d8785f534
7 changed files with 61 additions and 31 deletions

View File

@ -39,7 +39,7 @@ func (d *NetDialer) Dial(ctx context.Context, network, addr string) (net.Conn, e
if d.DialFunc != nil {
return d.DialFunc(ctx, network, addr)
}
logger.Default().Infof("interface: %s %s/%s", ifceName, ifAddr, network)
logger.Default().Infof("interface: %s %v/%s", ifceName, ifAddr, network)
switch network {
case "udp", "udp4", "udp6":