32 lines
970 B
C#
32 lines
970 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace MoShiro.Protocol;
|
|
|
|
/// <summary>当前网络环境的 IPv6 诊断。仅上报状态,不传地址、接口名称或路由内容。</summary>
|
|
public sealed class Ipv6Diagnostic
|
|
{
|
|
[JsonPropertyName("socket_supported")]
|
|
public bool SocketSupported { get; set; }
|
|
|
|
[JsonPropertyName("listening")]
|
|
public bool? Listening { get; set; }
|
|
|
|
[JsonPropertyName("network_scope")]
|
|
public string NetworkScope { get; set; } = "unknown";
|
|
|
|
[JsonPropertyName("host_has_global_address")]
|
|
public bool? HostHasGlobalAddress { get; set; }
|
|
|
|
[JsonPropertyName("host_has_default_route")]
|
|
public bool? HostHasDefaultRoute { get; set; }
|
|
|
|
[JsonPropertyName("has_global_address")]
|
|
public bool? HasGlobalAddress { get; set; }
|
|
|
|
[JsonPropertyName("has_default_route")]
|
|
public bool? HasDefaultRoute { get; set; }
|
|
|
|
[JsonPropertyName("state")]
|
|
public string State { get; set; } = "unknown";
|
|
}
|