diff --git a/object/cert_whois.go b/object/cert_whois.go index 7489c17..604648d 100644 --- a/object/cert_whois.go +++ b/object/cert_whois.go @@ -18,7 +18,6 @@ import ( "strings" "time" - "github.com/casbin/caswaf/proxy" "github.com/likexian/whois" whoisparser "github.com/likexian/whois-parser" ) @@ -44,15 +43,16 @@ func getDomainExpireTime(domainName string) (string, error) { server = "whois.nic.run" } else { server = "grs-whois.hichina.com" // com, net, cc, tv + //return "", fmt.Errorf("unsupported suffix for domain: %s", domainName) } client := whois.NewClient() - if server != "whois.cnnic.cn" && server != "grs-whois.hichina.com" { - dialer := proxy.GetProxyDialer() - if dialer != nil { - client.SetDialer(dialer) - } - } + //if server != "whois.cnnic.cn" && server != "grs-whois.hichina.com" { + // dialer := proxy.GetProxyDialer() + // if dialer != nil { + // client.SetDialer(dialer) + // } + //} data, err := client.Whois(domainName, server) if err != nil {