mirror of https://github.com/PCSX2/pcsx2.git
DEV9: Log when we fail to get adapter information for internal servers
This commit is contained in:
parent
2d0ad7fb72
commit
26ea5bcfed
|
@ -563,7 +563,10 @@ TAPAdapter::TAPAdapter()
|
|||
if (TAPGetWin32Adapter(config.Eth, &adapter, &buffer))
|
||||
InitInternalServer(&adapter);
|
||||
else
|
||||
{
|
||||
Console.Error("DEV9: Failed to get adapter information");
|
||||
InitInternalServer(nullptr);
|
||||
}
|
||||
|
||||
isActive = true;
|
||||
}
|
||||
|
|
|
@ -376,7 +376,10 @@ PCAPAdapter::PCAPAdapter()
|
|||
if (PCAPGetWin32Adapter(config.Eth, &adapter, &buffer))
|
||||
InitInternalServer(&adapter);
|
||||
else
|
||||
{
|
||||
Console.Error("DEV9: Failed to get adapter information");
|
||||
InitInternalServer(nullptr);
|
||||
}
|
||||
#elif defined(__POSIX__)
|
||||
ifaddrs adapter;
|
||||
ifaddrs* buffer;
|
||||
|
@ -386,7 +389,10 @@ PCAPAdapter::PCAPAdapter()
|
|||
freeifaddrs(buffer);
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.Error("DEV9: Failed to get adapter information");
|
||||
InitInternalServer(nullptr);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (pcap_io_init(config.Eth, config.EthApi == NetApi::PCAP_Switched, newMAC) == -1)
|
||||
|
|
Loading…
Reference in New Issue