Files
netch/Netch/Models/Settings/TUNConfig.cs
ChsBuffer 79c4a9d203 - Migrate to xjasonlyu/tun2socks
- Fix Starting Controller misc UI block
- Fix didn't stop Controller when starting Controller
2021-11-10 22:44:01 +08:00

45 lines
1.1 KiB
C#

using System.Collections.Generic;
namespace Netch.Models
{
/// <summary>
/// TUN/TAP 适配器配置类
/// </summary>
public class TUNConfig
{
/// <summary>
/// 地址
/// </summary>
public string Address { get; set; } = "10.0.236.10";
/// <summary>
/// DNS
/// </summary>
public string DNS { get; set; } = Constants.DefaultPrimaryDNS;
/// <summary>
/// 网关
/// </summary>
public string Gateway { get; set; } = "10.0.236.1";
/// <summary>
/// 掩码
/// </summary>
public string Netmask { get; set; } = "255.255.255.0";
/// <summary>
/// 模式 2 下是否代理 DNS
/// </summary>
public bool ProxyDNS { get; set; } = false;
/// <summary>
/// 使用自定义 DNS 设置
/// </summary>
public bool UseCustomDNS { get; set; } = false;
/// <summary>
/// Global bypass IPs
/// </summary>
public List<string> BypassIPs { get; set; } = new();
}
}