Exemple #1
0
        public bool Start(Server s, Mode mode)
        {
            var server = (Socks5)s;

            if (server.Auth() && !mode.SupportSocks5Auth)
            {
                File.WriteAllText("data\\last.json", V2rayConfigUtils.GenerateClientConfig(s, mode));
                if (StartInstanceAuto("-config ..\\data\\last.json"))
                {
                    return(true);
                }

                return(false);
            }

            return(true);
        }
Exemple #2
0
 public bool Start(Server s, Mode mode)
 {
     File.WriteAllText("data\\last.json", V2rayConfigUtils.GenerateClientConfig(s, mode));
     return(StartInstanceAuto("-config ..\\data\\last.json"));
 }