From be3fce15b16f851245da1d304ecbb46df9c2e93a Mon Sep 17 00:00:00 2001 From: database64128 Date: Sun, 7 Mar 2021 02:11:23 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=80=20Interop:=20ss-rust=20single=20se?= =?UTF-8?q?rver=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Shadowsocks.Interop/SsRust/Config.cs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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, }; }