frontend: resolve asn in dns/whois/fail order & fix tests
This commit is contained in:
@@ -7,6 +7,10 @@ import (
|
||||
|
||||
// Send a whois request
|
||||
func whois(s string) string {
|
||||
if setting.whoisServer == "" {
|
||||
return ""
|
||||
}
|
||||
|
||||
conn, err := net.Dial("tcp", setting.whoisServer+":43")
|
||||
if err != nil {
|
||||
return err.Error()
|
||||
|
||||
Reference in New Issue
Block a user