Skip to content

Commit

Permalink
DEV9: Only init Internal DHCP if Intercept DHCP is set
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLastRar committed May 7, 2021
1 parent 4224d7f commit 74c0855
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pcsx2/DEV9/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@ void NetAdapter::InitInternalServer(ifaddrs* adapter)
if (adapter == nullptr)
Console.Error("DEV9: InitInternalServer() got nullptr for adapter");

dhcpServer.Init(adapter);
if (config.InterceptDHCP)
dhcpServer.Init(adapter);

if (blocks())
{
Expand All @@ -293,7 +294,8 @@ void NetAdapter::ReloadInternalServer(ifaddrs* adapter)
if (adapter == nullptr)
Console.Error("DEV9: ReloadInternalServer() got nullptr for adapter");

dhcpServer.Init(adapter);
if (config.InterceptDHCP)
dhcpServer.Init(adapter);
}

bool NetAdapter::InternalServerRecv(NetPacket* pkt)
Expand Down

0 comments on commit 74c0855

Please sign in to comment.