This commit is contained in:
2026-02-04 14:19:57 +08:00
parent 0020d125c7
commit 33afd6f2b5
4 changed files with 274 additions and 3 deletions

View File

@@ -78,8 +78,16 @@ namespace CMLeonOS
ShowError("Network device is not ready");
}
dhcp.SendDiscoverPacket();
IPAddress = NetworkConfiguration.CurrentAddress.ToString();
Console.WriteLine($"Local IP: {IPAddress}");
string gateway = NetworkConfigManager.Instance.GetGateway();
Console.WriteLine($"Gateway: {gateway}");
string dns = NetworkConfigManager.Instance.GetDNS();
Console.WriteLine($"DNS Server: {dns}");
ShowSuccess("Network started");
}
catch (Exception ex)