Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Set socket family of connector to AF_INET" #9870

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions discord/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
from urllib.parse import quote as _uriquote
from collections import deque
import datetime
import socket

import aiohttp

Expand Down Expand Up @@ -798,8 +797,7 @@ async def close(self) -> None:
async def static_login(self, token: str) -> user.User:
# Necessary to get aiohttp to stop complaining about session creation
if self.connector is MISSING:
# discord does not support ipv6
self.connector = aiohttp.TCPConnector(limit=0, family=socket.AF_INET)
self.connector = aiohttp.TCPConnector(limit=0)

self.__session = aiohttp.ClientSession(
connector=self.connector,
Expand Down