We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d76431 commit 5c3348aCopy full SHA for 5c3348a
1 file changed
index.js
@@ -22,9 +22,9 @@ const PORT = process.env.PORT || 3000; // http和ws服务端
22
let ISP = '';
23
const GetISP = async () => {
24
try {
25
- const res = await axios.get('https://speed.cloudflare.com/meta');
+ const res = await axios.get('https://api.ip.sb/geoip');
26
const data = res.data;
27
- ISP = `${data.country}-${data.asOrganization}`.replace(/ /g, '_');
+ ISP = `${data.country_code}-${data.isp}`.replace(/ /g, '_');
28
} catch (e) {
29
ISP = 'Unknown';
30
}
0 commit comments