mirror of
https://github.com/MaxiFan/TunnelX.git
synced 2026-05-18 23:54:50 +03:00
b311473df4
Adds external OpenVPN Community integration with split-compatible routing, safer connection readiness checks, profile persistence, UI guidance, and release documentation for the new version. Co-authored-by: Cursor <cursoragent@cursor.com>
24 lines
1004 B
C#
24 lines
1004 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 string OpenVpnConfig { get; set; } = "";
|
|
public string OpenVpnExePath { get; set; } = "";
|
|
public string OpenVpnUsername { get; set; } = "";
|
|
public string OpenVpnPassword { get; set; } = "";
|
|
public string OpenVpnPrivateKeyPassword { get; set; } = "";
|
|
public bool AutoTuneMtu { get; set; } = true;
|
|
public bool EnableDnsOptimization { get; set; } = true;
|
|
public bool EnableGameMode { get; set; } = false;
|
|
}
|