Skip to content

Commit 248e545

Browse files
committed
ENHANCEMENTS:
- Ports have a tag if they are UDP or TCP (or both) now - /doc command shows tcp/udp notation in server documentation - /doc new node sheet added to server documentation CHANGES - Some code cleanups BUGFIX: - Rare hangup if a DCS server starts non-responsive
1 parent 4a4ea45 commit 248e545

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

extensions/cloud/extension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ async def cloud_register(self):
9292
payload = {
9393
"guild_id": self.node.guild_id,
9494
"server_name": self.server.name,
95-
"port": self.server.instance.dcs_port.port,
95+
"port": int(self.server.instance.dcs_port),
9696
"password": (self.server.settings.get('password', '') != ''),
9797
"theatre": self.server.current_mission.map,
9898
"dcs_version": self.node.dcs_version,

services/servicebus/service.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ async def send_init(self, server: Server):
194194
"options": server.options,
195195
"channels": server.locals.get('channels', {}),
196196
"node": self.node.name,
197-
"dcs_port": server.instance.dcs_port.port,
198-
"webgui_port": server.instance.webgui_port.port,
197+
"dcs_port": int(server.instance.dcs_port),
198+
"webgui_port": int(server.instance.webgui_port),
199199
"maintenance": server.maintenance
200200
}
201201
}, timeout=timeout)
@@ -220,7 +220,7 @@ async def register_local_servers(self):
220220
if server.maintenance:
221221
self.log.warning(f' => Maintenance mode enabled for Server {server.name}')
222222

223-
if utils.is_open(server.instance.dcs_host, server.instance.webgui_port.port):
223+
if utils.is_open(server.instance.dcs_host, int(server.instance.webgui_port)):
224224
calls[server.name] = asyncio.create_task(
225225
server.send_to_dcs_sync({"command": "registerDCSServer"}, timeout)
226226
)

0 commit comments

Comments
 (0)