summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.go b/main.go
index 4de5ca4..1cb0380 100644
--- a/main.go
+++ b/main.go
@@ -11,6 +11,8 @@ import (
const (
dburl = "localhost"
dropOldDB = true
+
+ whoisServer = "whois.cymru.com"
)
type Person struct {
@@ -25,7 +27,7 @@ func main() {
}
func whoistest() {
- result, err := whois.Whois("123.123.123.123", "whois.cymru.com")
+ result, err := whois.Whois("123.123.123.123", whoisServer)
if err != nil {
panic(err)
}