fix ws listener

This commit is contained in:
ginuerzh
2025-08-05 00:13:48 +08:00
parent b597467858
commit fd9dc6408a
4 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ type Dialer struct {
Netns string
Mark int
DialFunc func(ctx context.Context, network, addr string) (net.Conn, error)
Logger logger.Logger
Log logger.Logger
}
func (d *Dialer) Dial(ctx context.Context, network, addr string) (conn net.Conn, err error) {
@@ -36,7 +36,7 @@ func (d *Dialer) Dial(ctx context.Context, network, addr string) (conn net.Conn,
d = DefaultNetDialer
}
log := d.Logger
log := d.Log
if log == nil {
log = logger.Default()
}