mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-05-19 16:38:16 +08:00
Fix: dns client should not bind local address
This commit is contained in:
parent
350a65a36b
commit
f0acebf56d
@ -39,7 +39,7 @@ func (c *client) ExchangeContext(ctx context.Context, m *D.Msg) (msg *D.Msg, err
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if dialer.DialHook != nil {
|
||||
if ip != nil && ip.IsGlobalUnicast() && dialer.DialHook != nil {
|
||||
network := "udp"
|
||||
if strings.HasPrefix(c.Client.Net, "tcp") {
|
||||
network = "tcp"
|
||||
|
Loading…
Reference in New Issue
Block a user