mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2025-01-24 22:01:49 +01:00
explicit ipv4
This commit is contained in:
parent
b1e742e2a1
commit
c32f05f8c4
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user