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:
@@ -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())
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user