summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Langesten <daniel.langest@gmail.com>2015-02-24 08:51:48 +0100
committerDaniel Langesten <daniel.langest@gmail.com>2015-02-24 08:51:48 +0100
commitac3071a388793df40ba03201002252b12f8fd46e (patch)
tree25dbf4a363920d28bd4fbd2642b8803509914feb
parent0cb312b424276758c5f5620f568ace5944de2eeb (diff)
added server variable
-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)
}