private static string GetFailedIpResolveIpDestinationMessage(GeographicalServer server) { if (!server.get_IsOnionServer()) { return(""); } return(" Your traffic is forwarded to the Onion network"); }
private static string GetResolvedIpDestinationMessage(GeographicalServer server, string ip = "") { string result = string.IsNullOrEmpty(ip) ? "Resolving your new IP address..." : string.Format("Your new IP is {0}", ip); if (!server.get_IsOnionServer()) { return(result); } return("Your traffic is forwarded to the Onion network"); }