| 12345678910111213 |
- namespace NetworkTool.Client.Models;
- public sealed class RemoteInterfaceConfig
- {
- public string Interface { get; init; } = string.Empty;
- public bool Dhcp4 { get; init; }
- public string IP { get; init; } = string.Empty;
- public int Prefix { get; init; }
- public string Gateway { get; init; } = string.Empty;
- public IReadOnlyList<string> Dns { get; init; } = [];
- public string DnsSummary => Dns is null || Dns.Count == 0 ? "无" : string.Join(", ", Dns);
- }
|