Skip to content

Commit

Permalink
Fix protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
BattlefieldDuck committed Mar 16, 2024
1 parent e2a8592 commit 091548e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion discordgsm/protocols/beammp.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async def query(self):
ip = await Socket.gethostbyname(host)

base_url = os.getenv('OPENGSQ_MASTER_SERVER_URL', 'https://master-server.opengsq.com/').rstrip('/')
url = f"{base_url}/scum/search?host={ip}&port={port}"
url = f"{base_url}/beammp/search?host={ip}&port={port}"
start = time.time()

async with aiohttp.ClientSession() as session:
Expand Down
2 changes: 1 addition & 1 deletion discordgsm/protocols/factorio.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ async def query(self):
ping = 0
else:
base_url = os.getenv('OPENGSQ_MASTER_SERVER_URL', 'https://master-server.opengsq.com/').rstrip('/')
url = f"{base_url}/scum/search?host={ip}&port={port}"
url = f"{base_url}/factorio/search?host={ip}&port={port}"
start = time.time()

async with aiohttp.ClientSession() as session:
Expand Down
2 changes: 1 addition & 1 deletion discordgsm/protocols/palworld.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async def query(self):
ip = await Socket.gethostbyname(host)

base_url = os.getenv('OPENGSQ_MASTER_SERVER_URL', 'https://master-server.opengsq.com/').rstrip('/')
url = f"{base_url}/scum/search?host={ip}&port={port}"
url = f"{base_url}/palworld/search?host={ip}&port={port}"
start = time.time()

async with aiohttp.ClientSession() as session:
Expand Down

0 comments on commit 091548e

Please sign in to comment.