mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-16 08:42:22 +08:00
conntrack: Fix missing tracking for udp conn
This commit is contained in:
parent
3b64aec557
commit
0840fb1a28
|
@ -154,9 +154,9 @@ func (d *DefaultDialer) DialContext(ctx context.Context, network string, address
|
||||||
switch N.NetworkName(network) {
|
switch N.NetworkName(network) {
|
||||||
case N.NetworkUDP:
|
case N.NetworkUDP:
|
||||||
if !address.IsIPv6() {
|
if !address.IsIPv6() {
|
||||||
return d.udpDialer4.DialContext(ctx, network, address.String())
|
return trackConn(d.udpDialer4.DialContext(ctx, network, address.String()))
|
||||||
} else {
|
} else {
|
||||||
return d.udpDialer6.DialContext(ctx, network, address.String())
|
return trackConn(d.udpDialer6.DialContext(ctx, network, address.String()))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if !address.IsIPv6() {
|
if !address.IsIPv6() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user