chore: simplify DNSPrefer serialization process

This commit is contained in:
wwqgtxx
2025-12-04 13:41:44 +08:00
parent 32ce513977
commit b509affe5b
20 changed files with 35 additions and 30 deletions

View File

@@ -189,7 +189,7 @@ func NewSsh(option SshOption) (*Ssh, error) {
udp: false,
iface: option.Interface,
rmark: option.RoutingMark,
prefer: C.NewDNSPrefer(option.IPVersion),
prefer: option.IPVersion,
},
option: &option,
config: &config,