diff --git a/src/index.html b/src/index.html index d66d42e..3ebce95 100644 --- a/src/index.html +++ b/src/index.html @@ -202,6 +202,6 @@ - + \ No newline at end of file diff --git a/src/js/connectivity.js b/src/js/connectivity.js index 7c44408..31add85 100644 --- a/src/js/connectivity.js +++ b/src/js/connectivity.js @@ -50,6 +50,16 @@ function test_ipv6() { dataType: "json", timeout: 15000, success: function(resp) { + if (resp.address.includes(".")) { + $p.find(".proto_supported").html("Browser error"); + $p.find(".proto_icmp").html("Not tested"); + $p.find(".proto_address").html("n/a"); + $p.find(".proto_hostname").html("Not tested") + $p.find(".proto_isp").prev().html("Error") + $p.find(".proto_isp").html("Your browser doesn't support IPv6 properly. Please check out this bug if you are using Firefox."); + return; + } + $p.find(".proto_supported").html("Supported"); $p.find(".proto_address").html("" + resp.address + ""); $p.find(".proto_isp").html("" + resp.asn); @@ -132,7 +142,7 @@ function test_browser() { } }, error: function(xopt, err) { - $p.find(".browser_default").html("Test failed"); + $p.find(".browser_default").html("Test failed"); }, }); } @@ -148,7 +158,7 @@ function test_dns() { if (resp.protocol === "4") { $p.find(".dns_dns4_ip4").html("Reachable"); } else { - $p.find(".dns_dns4_ip4").html("Test failed"); + $p.find(".dns_dns4_ip4").html("Test failed"); } }, error: function(xopt, err) { @@ -163,7 +173,7 @@ function test_dns() { if (resp.protocol === "6") { $p.find(".dns_dns4_ip6").html("Reachable"); } else { - $p.find(".dns_dns4_ip6").html("Test failed"); + $p.find(".dns_dns4_ip6").html("Test failed"); } }, error: function(xopt, err) { @@ -178,7 +188,7 @@ function test_dns() { if (resp.protocol === "4") { $p.find(".dns_dns6_ip4").html("Reachable"); } else { - $p.find(".dns_dns6_ip4").html("Test failed"); + $p.find(".dns_dns6_ip4").html("Test failed"); } }, error: function(xopt, err) { @@ -193,7 +203,7 @@ function test_dns() { if (resp.protocol === "6") { $p.find(".dns_dns6_ip6").html("Reachable"); } else { - $p.find(".dns_dns6_ip6").html("Test failed"); + $p.find(".dns_dns6_ip6").html("Test failed"); } }, error: function(xopt, err) {