f**k you ipv4
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"ip_address": [
|
||||
{
|
||||
"ipv4": "86.99.25.74",
|
||||
"ipv4": "",
|
||||
"ipv6": "2001:8f8:172d:ee93:7588:ad57:c351:3309",
|
||||
"latency": 403227,
|
||||
"latency": 462096,
|
||||
"download": 0,
|
||||
"upload": 0
|
||||
}
|
||||
|
||||
@@ -153,6 +153,7 @@ func (s *IpAddress) PingTest() error {
|
||||
var pingURL string
|
||||
if s.Ipv6 != "" {
|
||||
pingURL = "http://[" + s.Ipv6 + "]:8088/server_info"
|
||||
s.Ipv4 = ""
|
||||
} else {
|
||||
pingURL = "http://" + s.Ipv4 + ":8088/server_info"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user