Fix p2p binding to vport 0

This commit is contained in:
RipleyTom 2025-03-22 22:52:34 +01:00
commit 61954d0047
No known key found for this signature in database
GPG key ID: FC2B5DEF76BF4CC8

View file

@ -141,7 +141,8 @@ s32 lv2_socket_p2p::bind(const sys_net_sockaddr& addr)
p2p_vport++; p2p_vport++;
} }
} }
else if (pport.bound_p2p_vports.contains(p2p_vport))
if (pport.bound_p2p_vports.contains(p2p_vport))
{ {
// Check that all other sockets are SO_REUSEADDR or SO_REUSEPORT // Check that all other sockets are SO_REUSEADDR or SO_REUSEPORT
auto& bound_sockets = ::at32(pport.bound_p2p_vports, p2p_vport); auto& bound_sockets = ::at32(pport.bound_p2p_vports, p2p_vport);