gip: rework giplib in a more propper library

and add Akamai for IPv4

Signed-off-by: Nagy Károly Gábriel <k@jpi.io>
This commit is contained in:
2019-01-20 13:02:46 +02:00
parent af71b64160
commit 308041d440
2 changed files with 52 additions and 56 deletions
+4 -4
View File
@@ -31,15 +31,15 @@ func main() {
all = true
}
if all {
fmt.Println(giplib.GetIPv4())
fmt.Println(giplib.GetIPv6())
fmt.Println(giplib.GetOpenDNS4())
fmt.Println(giplib.GetGoogle6())
os.Exit(0)
}
if *ptr4 {
fmt.Println(giplib.GetIPv4())
fmt.Println(giplib.GetOpenDNS4())
}
if *ptr6 {
fmt.Println(giplib.GetIPv6())
fmt.Println(giplib.GetOpenDNS6())
}
}