Beispiel #1
0
 public void InsertSSClient()
 {
     InsertConfigHelper(() =>
     {
         InsertOutBoundSetting(ssClient.GetSettings(), "shadowsocks");
     });
 }
Beispiel #2
0
        public void InsertSSClient()
        {
            InsertConfigHelper(() =>
            {
                var outbound = Lib.Utils.CreateJObject("outbound");
                outbound["outbound"]["settings"] = ssClient.GetSettings();
                outbound["outbound"]["protocol"] = "shadowsocks";

                try
                {
                    Lib.Utils.RemoveKeyFromJObject(config, "outbound.settings");
                }
                catch (KeyNotFoundException) { }

                config = Lib.Utils.CombineConfig(config, outbound);
            });
        }