mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-02 09:32:09 +01:00
more gymnastics to give fake results?
This commit is contained in:
parent
69685a86bd
commit
85d7e44712
5 changed files with 76 additions and 75 deletions
|
|
@ -553,7 +553,9 @@ std::pair<s32, Network::Errno> BSD::SocketImpl(Network::Domain domain, Network::
|
|||
auto room_member = Network::GetRoomMember().lock();
|
||||
if (room_member && room_member->IsConnected()) {
|
||||
descriptor.socket = std::make_shared<Network::ProxySocket>();
|
||||
} else if (protocol == Network::Protocol::ICMP || protocol == Network::Protocol::ICMPV6) {
|
||||
} else if ((type == Network::Type::RAW || type == Network::Type::DGRAM)
|
||||
&& (domain == Network::Domain::INET && protocol == Network::Protocol::ICMP)
|
||||
&& (domain == Network::Domain::INET6 && protocol == Network::Protocol::ICMPV6)) {
|
||||
descriptor.socket = std::make_shared<Network::IcmpSocket>();
|
||||
} else {
|
||||
descriptor.socket = std::make_shared<Network::Socket>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue