fix "-nW" issue
parent
812fc9abd5
commit
70f4216075
|
@ -1,6 +1,7 @@
|
||||||
package resolve
|
package resolve
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/rs/xid"
|
"github.com/rs/xid"
|
||||||
|
@ -74,9 +75,9 @@ func (r *ResolutionPool) InitWildcards(domain string) error {
|
||||||
for i := 0; i < maxWildcardChecks; i++ {
|
for i := 0; i < maxWildcardChecks; i++ {
|
||||||
uid := xid.New().String()
|
uid := xid.New().String()
|
||||||
|
|
||||||
hosts, err := r.DNSClient.Lookup(uid + "." + domain)
|
hosts, _ := r.DNSClient.Lookup(uid + "." + domain)
|
||||||
if err != nil {
|
if len(hosts) == 0 {
|
||||||
return err
|
return fmt.Errorf("%s is not a wildcard domain", domain)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Append all wildcard ips found for domains
|
// Append all wildcard ips found for domains
|
||||||
|
|
Loading…
Reference in New Issue