mirror of
https://github.com/MaxiFan/TunnelX.git
synced 2026-05-19 08:04:41 +03:00
19 lines
727 B
C#
19 lines
727 B
C#
namespace AppTunnel.Models;
|
|
|
|
/// <summary>
|
|
/// Server connection configuration (L2TP/IPsec, V2Ray).
|
|
/// </summary>
|
|
public class ServerConfig
|
|
{
|
|
public string ServerAddress { get; set; } = string.Empty;
|
|
public string Username { get; set; } = string.Empty;
|
|
public string Password { get; set; } = string.Empty;
|
|
public string PreSharedKey { get; set; } = string.Empty;
|
|
public string ConnectionName { get; set; } = "TunnelX";
|
|
public TunnelType TunnelType { get; set; } = TunnelType.L2tpIpsec;
|
|
public string V2RayConfig { get; set; } = "";
|
|
public bool AutoTuneMtu { get; set; } = true;
|
|
public bool EnableDnsOptimization { get; set; } = true;
|
|
public bool EnableGameMode { get; set; } = false;
|
|
}
|