static private ToProxyString ( string proxyType, string proxyEndPoint ) : string | ||
proxyType | string | |
proxyEndPoint | string | |
return | string |
static string ToProxyString(string proxyType, string proxyEndPoint)
{
switch (proxyType) {
case "None": return "";
case "TOR": return "TOR";
case "SOCKS5": return "socks5://" + proxyEndPoint;
case "CONNECT": return "connect://" + proxyEndPoint;
}
return "";
}