mirror of https://github.com/PCSX2/pcsx2.git
DEV9: Fix Auto Adapter in Socket backend on Mac and FreeBSD
This commit is contained in:
parent
c06ac00677
commit
7d81c979fe
|
@ -493,6 +493,13 @@ bool SocketAdapter::GetIfAutoAdapter(ifaddrs* adapter, ifaddrs** buffer)
|
|||
|
||||
if (gateways.size() > 0)
|
||||
hasGateway = true;
|
||||
|
||||
#elif defined(__FreeBSD__) || (__APPLE__)
|
||||
std::vector<IP_Address> gateways = InternalServers::DHCP_Server::GetGatewaysBSD(pAdapter->ifa_name);
|
||||
|
||||
if (gateways.size() > 0)
|
||||
hasGateway = true;
|
||||
|
||||
#else
|
||||
Console.Error("DHCP: Unsupported OS, can't find Gateway");
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue