Skip to content

Commit

Permalink
Fix Epic Online Services (EOS) Protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
BattlefieldDuck committed Nov 21, 2023
1 parent 125c724 commit 688248e
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion discordgsm/protocols/beammp.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async def query(self):
await self.pre_query()

host, port = str(self.kv['host']), int(str(self.kv['port']))
ip = SocketAsync.gethostbyname(host)
ip = await SocketAsync.gethostbyname(host)
key = f'{ip}:{port}'

if key not in BeamMP.master_servers:
Expand Down
2 changes: 1 addition & 1 deletion discordgsm/protocols/factorio.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async def query(self):
await self.pre_query()

host, port = str(self.kv['host']), int(str(self.kv['port']))
ip = SocketAsync.gethostbyname(host)
ip = await SocketAsync.gethostbyname(host)
host_address = f'{ip}:{port}'

if host_address not in Factorio.master_servers:
Expand Down
2 changes: 1 addition & 1 deletion discordgsm/protocols/front.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async def query(self):
info = await source.get_info()
ping = int((time.time() - start) * 1000)

ip = SocketAsync.gethostbyname(host)
ip = await SocketAsync.gethostbyname(host)
host_address = f'{ip}:{info["GamePort"]}'

if host_address not in Front.master_servers:
Expand Down
2 changes: 1 addition & 1 deletion discordgsm/protocols/nwn1.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async def query(self):
await self.pre_query()

host, port = str(self.kv['host']), int(str(self.kv['port']))
ip = SocketAsync.gethostbyname(host)
ip = await SocketAsync.gethostbyname(host)
key = f'{ip}:{port}'

if key not in NWN1.master_servers:
Expand Down
2 changes: 1 addition & 1 deletion discordgsm/protocols/nwn2.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async def query(self):
await self.pre_query()

host, port = str(self.kv['host']), int(str(self.kv['port']))
ip = SocketAsync.gethostbyname(host)
ip = await SocketAsync.gethostbyname(host)
key = f'{ip}:{port}'

if key not in NWN2.master_servers:
Expand Down
2 changes: 1 addition & 1 deletion discordgsm/protocols/scum.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async def query(self):
await self.pre_query()

host, port = str(self.kv['host']), int(str(self.kv['port']))
ip = SocketAsync.gethostbyname(host)
ip = await SocketAsync.gethostbyname(host)
host_address = f'{ip}:{port}'

if host_address not in Scum.master_servers:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ backports.zoneinfo==0.2.1;python_version<"3.9"
discord.py==2.3.2
flask[async]==3.0.0
gunicorn==21.2.0
opengsq==2.2.2
opengsq==2.2.3
psycopg2-binary==2.9.9
pymongo==4.5.0
python-dotenv==1.0.0
Expand Down

0 comments on commit 688248e

Please sign in to comment.