mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-08 01:00:11 +00:00
Fix p2p binding to vport 0
This commit is contained in:
parent
d9071abd8b
commit
61954d0047
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue