using System.Collections.Generic; using Netch.Models; namespace Netch.ServerEx.Shadowsocks { public class Shadowsocks : Server { /// /// 加密方式 /// public string EncryptMethod { get; set; } = SSGlobal.EncryptMethods[0]; /// /// 密码 /// public string Password { get; set; } /// /// 插件 /// public string Plugin { get; set; } /// /// 插件参数 /// public string PluginOption { get; set; } public Shadowsocks() { Type = "SS"; } } public static class SSGlobal { /// /// SS 加密列表 /// public static readonly List EncryptMethods = new List { "rc4-md5", "aes-128-gcm", "aes-192-gcm", "aes-256-gcm", "aes-128-cfb", "aes-192-cfb", "aes-256-cfb", "aes-128-ctr", "aes-192-ctr", "aes-256-ctr", "camellia-128-cfb", "camellia-192-cfb", "camellia-256-cfb", "bf-cfb", "chacha20-ietf-poly1305", "xchacha20-ietf-poly1305", "salsa20", "chacha20", "chacha20-ietf" }; } }