mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
Resolver Info fill missing field
This commit is contained in:
parent
cca520d64e
commit
598dc9d254
1 changed files with 2 additions and 0 deletions
|
@ -186,6 +186,8 @@ func checkAndSetResolverParamters(u *url.URL, resolver *Resolver) error {
|
|||
hostnameIsDomaion := (ip == nil)
|
||||
if ip == nil && u.Scheme != ServerTypeDoH && u.Scheme != ServerTypeDoT {
|
||||
return fmt.Errorf("resolver IP %q invalid", u.Hostname())
|
||||
} else {
|
||||
resolver.Info.IP = ip
|
||||
}
|
||||
|
||||
// Add default port for scheme if it is missing.
|
||||
|
|
Loading…
Add table
Reference in a new issue