Beispiel #1
0
 public static void restoreIP(ProxyTool tool, string _ip, string country, string region, out string result)
 {
     result = (string)null;
     if (tool == ProxyTool.SSH)
     {
         LocalConfig.getCurrentConfig().changeSSHPort();
         ProxyCore.doChangeIP(tool, country, region, _ip, out result);
         AutoLeadClientHelper.reloadNetwork();
     }
     else
     {
         LocalConfig.getCurrentConfig().changeVip72Port();
         ProxyCore.doChangeIP(tool, country, region, _ip, out result);
         AutoLeadClientHelper.reloadNetwork();
     }
 }
Beispiel #2
0
 public static void doChangeIP(ProxyTool tool, string country, out string ip)
 {
     ip = (string)null;
     if (tool == ProxyTool.SSH)
     {
         LocalConfig.getCurrentConfig().changeSSHPort();
         ProxyCore.doChangeIP(tool, country, (string)null, (string)null, out ip);
         Thread.Sleep(3000);
         AutoLeadClientHelper.reloadNetwork();
     }
     else
     {
         LocalConfig.getCurrentConfig().changeVip72Port();
         ProxyCore.doChangeIP(tool, country, (string)null, (string)null, out ip);
         Thread.Sleep(3000);
         AutoLeadClientHelper.reloadNetwork();
     }
 }