diff --git a/Shadowsocks.Interop/SsRust/Config.cs b/Shadowsocks.Interop/SsRust/Config.cs index d970e5bc..5e16eff3 100644 --- a/Shadowsocks.Interop/SsRust/Config.cs +++ b/Shadowsocks.Interop/SsRust/Config.cs @@ -22,6 +22,29 @@ namespace Shadowsocks.Interop.SsRust /// public int LocalPort { get; set; } + /// + [JsonPropertyName("server")] + public string? Host { get; set; } + + /// + [JsonPropertyName("server_port")] + public int Port { get; set; } + + /// + public string? Password { get; set; } + + /// + public string? Method { get; set; } + + /// + public string? Plugin { get; set; } + + /// + public string? PluginOpts { get; set; } + + /// + public List? PluginArgs { get; set; } + /// /// Gets or sets the timeout for UDP associations in seconds. /// Defaults to 300 seconds (5 minutes). @@ -101,6 +124,7 @@ namespace Shadowsocks.Interop.SsRust { LocalAddress = "::1", Mode = "tcp_and_udp", + NoDelay = true, Ipv6First = true, }; }