mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-28 13:28:01 +03:00
Fix p2p binding to vport 0
Some checks failed
Generate Translation Template / Generate Translation Template (push) Has been cancelled
Build RPCS3 / RPCS3 Linux ubuntu-24.04-arm clang (push) Has been cancelled
Build RPCS3 / RPCS3 Linux ubuntu-24.04 clang (push) Has been cancelled
Build RPCS3 / RPCS3 Windows (push) Has been cancelled
Build RPCS3 / RPCS3 Linux ubuntu-24.04 gcc (push) Has been cancelled
Some checks failed
Generate Translation Template / Generate Translation Template (push) Has been cancelled
Build RPCS3 / RPCS3 Linux ubuntu-24.04-arm clang (push) Has been cancelled
Build RPCS3 / RPCS3 Linux ubuntu-24.04 clang (push) Has been cancelled
Build RPCS3 / RPCS3 Windows (push) Has been cancelled
Build RPCS3 / RPCS3 Linux ubuntu-24.04 gcc (push) Has been cancelled
This commit is contained in:
parent
d9071abd8b
commit
40ff182c31
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