diff --git a/resolver.go b/resolver.go index bece9c0..52a17fc 100644 --- a/resolver.go +++ b/resolver.go @@ -473,6 +473,9 @@ func LookupIP(domain string) []string { } func lookupIP(domain string, timeout int) (ips []string) { + if net.ParseIP(domain) != nil { + return []string{domain} + } resolverMutex.Lock() if or == nil { ProxyLogger.Load().Debug().Msgf("Initialize OS resolver in lookupIP")