forked from LBRYCommunity/lbry-sdk
explicitely specify ipv4
This commit is contained in:
parent
ed32d17936
commit
527e288568
1 changed files with 2 additions and 1 deletions
|
@ -16,6 +16,7 @@ import os
|
|||
import pylru
|
||||
import ssl
|
||||
import time
|
||||
import socket
|
||||
from asyncio import Event, sleep
|
||||
from collections import defaultdict
|
||||
from functools import partial
|
||||
|
@ -147,7 +148,7 @@ class SessionManager:
|
|||
protocol_class = self.env.coin.SESSIONCLS
|
||||
protocol_factory = partial(protocol_class, self, self.db,
|
||||
self.mempool, self.peer_mgr, kind)
|
||||
server = loop.create_server(protocol_factory, *args, **kw_args)
|
||||
server = loop.create_server(protocol_factory, *args, family=socket.AF_INET, **kw_args)
|
||||
|
||||
host, port = args[:2]
|
||||
try:
|
||||
|
|
Loading…
Add table
Reference in a new issue