Change URL for proxy test (#2434)
This commit is contained in:
parent
22dd5baf23
commit
ad01e95ec4
|
@ -31,8 +31,7 @@ export default Vue.extend({
|
||||||
return {
|
return {
|
||||||
isLoading: false,
|
isLoading: false,
|
||||||
dataAvailable: false,
|
dataAvailable: false,
|
||||||
proxyTestUrl: 'https://api.ipify.org?format=json',
|
proxyTestUrl: 'https://ipwho.is/',
|
||||||
proxyTestUrl1: 'https://freegeoip.app/json/',
|
|
||||||
proxyId: '',
|
proxyId: '',
|
||||||
proxyCountry: '',
|
proxyCountry: '',
|
||||||
proxyRegion: '',
|
proxyRegion: '',
|
||||||
|
@ -125,11 +124,11 @@ export default Vue.extend({
|
||||||
if (!this.useProxy) {
|
if (!this.useProxy) {
|
||||||
this.enableProxy()
|
this.enableProxy()
|
||||||
}
|
}
|
||||||
$.getJSON(this.proxyTestUrl1, (response) => {
|
$.getJSON(this.proxyTestUrl, (response) => {
|
||||||
console.log(response)
|
console.log(response)
|
||||||
this.proxyIp = response.ip
|
this.proxyIp = response.ip
|
||||||
this.proxyCountry = response.country_name
|
this.proxyCountry = response.country
|
||||||
this.proxyRegion = response.region_name
|
this.proxyRegion = response.region
|
||||||
this.proxyCity = response.city
|
this.proxyCity = response.city
|
||||||
this.dataAvailable = true
|
this.dataAvailable = true
|
||||||
}).fail((xhr, textStatus, error) => {
|
}).fail((xhr, textStatus, error) => {
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
class="center"
|
class="center"
|
||||||
:style="{opacity: useProxy ? 1 : 0.4}"
|
:style="{opacity: useProxy ? 1 : 0.4}"
|
||||||
>
|
>
|
||||||
{{ $t('Settings.Proxy Settings.Clicking on Test Proxy will send a request to') }} https://freegeoip.app/json/
|
{{ $t('Settings.Proxy Settings.Clicking on Test Proxy will send a request to') }} {{ proxyTestUrl }}
|
||||||
</p>
|
</p>
|
||||||
<ft-flex-box>
|
<ft-flex-box>
|
||||||
<ft-button
|
<ft-button
|
||||||
|
|
Loading…
Reference in New Issue