Beispiel #1
0
 private void StartSocksServer()
 {
     if (remoteSocksIPEPs.Length > 0)
     {
         socksServer = new SocksServer(remoteSocksIPEPs[0]);
         socksServer.Start();
     }
 }
Beispiel #2
0
        private static void StartSocksServer()
        {
            string[] remoteSocksAddress = ReadStrs("Remote SOCKS Address");
            if (remoteSocksAddress.Length != 2)
            {
                return;
            }

            if (int.TryParse(remoteSocksAddress[1], out int remoteSocksPort))
            {
                socksServer = new SocksServer(remoteSocksAddress[0], remoteSocksPort);
                socksServer.Start();
            }
        }