From bd357c272af97fb8b5080c7beb56eef12432c0c2 Mon Sep 17 00:00:00 2001 From: Mael G Date: Sun, 28 Jul 2019 19:01:39 -0400 Subject: [PATCH] IPv6 fix for production --- cogs/utility.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cogs/utility.py b/cogs/utility.py index 735cce7..8d496f1 100755 --- a/cogs/utility.py +++ b/cogs/utility.py @@ -212,6 +212,10 @@ class Utility(commands.Cog): if(iptype=="ipv6" or iptype=="v6"): try: ipaddress = socket.getaddrinfo(ipaddress, None, socket.AF_INET6)[1][4][0] + + if (ipaddress == "2602:fe53:b:1::87") and not ("gnous" in realipaddress): + await ctx.send("Erreur, cette adresse n'est pas disponible en IPv6.") + return except Exception as e: await ctx.send("Erreur, cette adresse n'est pas disponible en IPv6.") print(e)