From 56e45b52b59484158594fee27c46db777b5e6528 Mon Sep 17 00:00:00 2001
From: Romain J <romain@gnous.eu>
Date: Sun, 25 Apr 2021 01:22:39 +0200
Subject: [PATCH] rage, part2 (hotfix from prod)

---
 tuxbot/cogs/Network/network.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tuxbot/cogs/Network/network.py b/tuxbot/cogs/Network/network.py
index b752974..1d7bd17 100644
--- a/tuxbot/cogs/Network/network.py
+++ b/tuxbot/cogs/Network/network.py
@@ -6,7 +6,7 @@ from typing import Optional
 
 import aiohttp
 import discord
-from aiohttp import ClientConnectorError, InvalidURL
+from aiohttp import ClientConnectorError, InvalidURL, TCPConnector
 from jishaku.models import copy_context_with
 from discord.ext import commands, tasks
 from ipinfo.exceptions import RequestQuotaExceededError
@@ -93,9 +93,9 @@ class Network(commands.Cog):
     @tasks.loop(hours=1.0)
     async def _update_peering_db(self):
         try:
-            async with aiohttp.ClientSession() as cs:
+            async with aiohttp.ClientSession(connector=TCPConnector(verify_ssl=False)) as cs:
                 async with cs.get(
-                    "https://peeringdb.com/api/net",
+                    "https://3.233.208.117/api/net",
                     timeout=aiohttp.ClientTimeout(total=60),
                 ) as s:
                     self._peeringdb_net = await s.json()