Exemple #1
0
 private void DoSocks(IPAddress ip, int port, string dest, int destport, string username = null, string password = null)
 {
     ipAddress = ip;
     Port      = port;
     //check for username & pw.
     if (username != null && password != null)
     {
         Username = username;
         Password = password;
         reqPass  = true;
     }
     Dest     = dest;
     Destport = destport;
     this.enc = new SocksEncryption();
 }
Exemple #2
0
 private void DoSocks(IPAddress ip, int port, string dest, int destport, string username = null, string password = null)
 {
     ipAddress = ip;
     Port = port;
     //check for username & pw.
     if (username != null && password != null)
     {
         Username = username;
         Password = password;
         reqPass = true;
     }
     Dest = dest;
     Destport = destport;
     this.enc = new SocksEncryption();
 }