f**k you ipv4

This commit is contained in:
2021-06-25 17:29:08 +04:00
parent 657577f583
commit 2caa9d0aac
2 changed files with 3 additions and 2 deletions

View File

@@ -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
}

View File

@@ -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"
}