mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Remove api64 call
This commit is contained in:
parent
48c1d29ada
commit
c7b326899b
1 changed files with 1 additions and 2 deletions
|
@ -857,9 +857,8 @@ class OtherCog(commands.Cog):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
async def check_proxy(url: str = "socks5://localhost:1090"):
|
async def check_proxy(url: str = "socks5://localhost:1090"):
|
||||||
client = httpx.AsyncClient(http2=True)
|
client = httpx.AsyncClient(http2=True)
|
||||||
my_ip64 = (await client.get("https://api64.ipify.org")).text
|
|
||||||
my_ip4 = (await client.get("https://api.ipify.org")).text
|
my_ip4 = (await client.get("https://api.ipify.org")).text
|
||||||
real_ips = [my_ip64, my_ip4]
|
real_ips = [my_ip4]
|
||||||
await client.aclose()
|
await client.aclose()
|
||||||
|
|
||||||
# Check the proxy
|
# Check the proxy
|
||||||
|
|
Loading…
Reference in a new issue