public static bool IsLoopBack(string ip) { switch (SocksUtilities.GetHostNameType(ip)) { case EndPointType.IPv4: return(IsLoopBackForIPv4(ip)); case EndPointType.IPv6: return(IsLoopBackForIPv6(ip)); } throw new NotSupportedException(); }
public SocksAddress(string host, int port) : this(SocksUtilities.GetHostNameType(host), host, port) { }