Skip to content

setting endpoint_add_udp twice with the same value is crashing FXServer #1514

@manzarek123

Description

@manzarek123

Of course you should not do that but maybe a few additional checks could prevent some users to accidentally crash their server

Repro:

In server.cfg

endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"

Then when the server is running type:
endpoint_add_udp "0.0.0.0:30120"

Result:
cfx> endpoint_add_udp "0.0.0.0:30120"
[ citizen-server-impl] Error: Could not bind on 0.0.0.0:30120 - is this address valid and not already in use?
[ citizen-server-impl]
[ server] Error: Loop svMain seems hung! (last checkin 45 seconds ago)
[ server] Warning: svMain watchdog stack: root
[ server] Uploaded a live hang dump to the CitizenFX crash reporting service. The report ID is b89de889-fd37-43e8-b52f-ca114c2b8b27.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions