fix: dns specified interface does not change

This commit is contained in:
Skyxim
2022-04-28 22:40:06 +08:00
parent e2409f9639
commit bbbe371ea9
3 changed files with 7 additions and 5 deletions

View File

@ -4,6 +4,7 @@ import (
"context"
"errors"
"fmt"
"go.uber.org/atomic"
"math/rand"
"net/netip"
"strings"
@ -356,7 +357,7 @@ func (r *Resolver) HasProxyServer() bool {
type NameServer struct {
Net string
Addr string
Interface string
Interface *atomic.String
ProxyAdapter string
}