feat: dnsHijack support "any"

chore: adjust process debug display logic
This commit is contained in:
Meta Gowork
2022-04-22 13:30:04 +08:00
parent 3b16fcef92
commit 3f6d2e5f91
3 changed files with 16 additions and 8 deletions

View File

@ -896,7 +896,7 @@ func parseTun(rawTun RawTun, general *General) (*Tun, error) {
if _, after, ok := strings.Cut(d, "://"); ok {
d = after
}
d = strings.Replace(d, "any", "0.0.0.0", 1)
addrPort, err := netip.ParseAddrPort(d)
if err != nil {
return nil, fmt.Errorf("parse dns-hijack url error: %w", err)