explicit ipv4

This commit is contained in:
creeper123123321 2021-02-09 13:21:16 -03:00 committed by GitHub
parent b1e742e2a1
commit c32f05f8c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ function refreshCorsStatus() {
} }
function icanhazip(cors) { function icanhazip(cors) {
return fetch((cors ? getCorsProxy() : "") + "https://icanhazip.com") return fetch((cors ? getCorsProxy() : "") + "https://ipv4.icanhazip.com")
.then(it => { .then(it => {
if (!isSuccess(it.status)) throw "not success " + it.status if (!isSuccess(it.status)) throw "not success " + it.status
return it.text(); return it.text();