Only set SO_REUSEADDR when not in the simulation

This commit is contained in:
2026-02-21 23:36:54 +01:00
parent 510007d560
commit 32c054a421
+2
View File
@@ -38,8 +38,10 @@ static SOCKET create_listen_socket(Address addr)
return INVALID_SOCKET;
}
#ifndef MAIN_SIMULATION
int reuse = 1;
setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &reuse, sizeof(reuse));
#endif
if (!addr.is_ipv4) {
assert(0); // TODO