(ip: string)
| 66 | const response = await axios.get(`https://api.ip.sb/geoip/${ip}`, { |
| 67 | timeout: 3000, |
| 68 | headers: { |
| 69 | "User-Agent": "TeleBox-DNS-Plugin/1.0", |
| 70 | }, |
| 71 | }); |
| 72 | |
| 73 | if (response.status === 200 && response.data) { |
| 74 | const data = response.data; |
| 75 | const country = data.country || ""; |
no outgoing calls
no test coverage detected