Skip to content

Commit d4f6537

Browse files
authored
Only Enable DHCP if requird
1 parent 42ac826 commit d4f6537

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

nanoFramework.System.Net/NetworkHelper/NetworkHelperInternal.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,11 @@ public static void InternalSetupHelper(
9292
}
9393
else
9494
{
95-
networkInterface.EnableDhcp();
95+
if (!networkInterface.IsDhcpEnabled)
96+
{
97+
networkInterface.EnableDhcp();
98+
}
99+
96100
networkInterface.EnableAutomaticDns();
97101
}
98102
}

0 commit comments

Comments
 (0)