diff --git a/src/index.html b/src/index.html index 446ff39..91cf952 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 73425ed..ec3cce7 100644 --- a/src/js/connectivity.js +++ b/src/js/connectivity.js @@ -9,6 +9,14 @@ function test_ipv4() { dataType: "json", timeout: 15000, success: function(resp) { + if (resp.address.includes(":")) { + $p.find(".proto_supported").html("Browser error"); + $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);