public void Add(string v) { if (v == null) { return; } v = v.Replace(",", "\n"); string[] lines = v.Split('\n'); foreach (string line in lines) { if (line.Trim() != "") { IpAddress ip = new IpAddress(line.Trim()); if (ip.Valid) { Add(ip); } else { // Resolve Add(DnsManager.ResolveDNS(line.Trim())); } } } }
public void Tests() { IpAddresses dns = DnsManager.ResolveDNS("dnstest.eddie.website", true); Add("Test DNS IPv4", (dns.CountIPv4 == 2) ? Messages.Ok : Messages.Failed); Add("Test DNS IPv6", (dns.CountIPv6 == 2) ? Messages.Ok : Messages.Failed); Add("Test Ping IPv4", Platform.Instance.Ping(dns.OnlyIPv4.First, 5000).ToString() + " ms"); Add("Test Ping IPv6", Platform.Instance.Ping(dns.OnlyIPv6.First, 5000).ToString() + " ms"); Add("Test HTTP IPv4", TestUrl("http://" + "ipv4." + Constants.Domain + "/test/")); Add("Test HTTP IPv6", TestUrl("http://" + "ipv6." + Constants.Domain + "/test/")); Add("Test HTTPS", TestUrl("https://" + Constants.Domain + "/test/")); }
public void Tests() { IpAddresses dns = DnsManager.ResolveDNS("dnstest.eddie.website", true); Add("Test DNS IPv4", (dns.CountIPv4 == 2) ? LanguageManager.GetText("Ok") : LanguageManager.GetText("Failed")); Add("Test DNS IPv6", (dns.CountIPv6 == 2) ? LanguageManager.GetText("Ok") : LanguageManager.GetText("Failed")); Add("Test Ping IPv4", TestPing(Constants.WebSiteIPv4)); Add("Test Ping IPv6", TestPing(Constants.WebSiteIPv6)); Add("Test HTTP IPv4", TestUrl("http://" + Constants.WebSiteIPv4 + "/test/")); Add("Test HTTP IPv6", TestUrl("http://[" + Constants.WebSiteIPv6 + "]/test/")); Add("Test HTTPS", TestUrl("https://" + Constants.Domain + "/test/")); }
public void Tests() { IpAddresses dns = DnsManager.ResolveDNS("dnstest.eddie.website", true); Add("Test DNS IPv4", (dns.CountIPv4 == 2) ? Messages.Ok : Messages.Failed); Add("Test DNS IPv6", (dns.CountIPv6 == 2) ? Messages.Ok : Messages.Failed); Add("Test HTTP", TestUrl("http://" + Constants.Domain + "/test/")); Add("Test HTTPS", TestUrl("https://" + Constants.Domain + "/test/")); /* #if !EDDIENET20 * Add("JsonTest", Newtonsoft.Json.JsonConvert.SerializeObject(new IpAddress("8.8.8.8"))); #endif */ }
public void Tests() { IpAddresses dns = DnsManager.ResolveDNS("dnstest.eddie.website", true); Add("Test DNS IPv4", (dns.CountIPv4 == 2) ? LanguageManager.GetText("Ok") : LanguageManager.GetText("Failed")); Add("Test DNS IPv6", (dns.CountIPv6 == 2) ? LanguageManager.GetText("Ok") : LanguageManager.GetText("Failed")); /* Changed in 2.17.1 * Add("Test Ping IPv4", Platform.Instance.Ping(dns.OnlyIPv4.First, 5000).ToString() + " ms"); * Add("Test Ping IPv6", Platform.Instance.Ping(dns.OnlyIPv6.First, 5000).ToString() + " ms"); * * Add("Test HTTP IPv4", TestUrl("http://" + "ipv4." + Constants.Domain + "/test/")); * Add("Test HTTP IPv6", TestUrl("http://" + "ipv6." + Constants.Domain + "/test/")); * Add("Test HTTPS", TestUrl("https://" + Constants.Domain + "/test/")); */ Add("Test Ping IPv4", Platform.Instance.Ping(new IpAddress(Constants.WebSiteIPv4), 5000).ToString() + " ms"); Add("Test Ping IPv6", Platform.Instance.Ping(new IpAddress(Constants.WebSiteIPv6), 5000).ToString() + " ms"); Add("Test HTTP IPv4", TestUrl("http://" + Constants.WebSiteIPv4 + "/test/")); Add("Test HTTP IPv6", TestUrl("http://[" + Constants.WebSiteIPv6 + "]/test/")); Add("Test HTTPS", TestUrl("https://" + Constants.Domain + "/test/")); }
public virtual void FlushDNS() { Engine.Instance.Logs.Log(LogType.Verbose, Messages.ConnectionFlushDNS); DnsManager.Invalidate(); }
public virtual void FlushDNS() { Engine.Instance.Logs.Log(LogType.Verbose, LanguageManager.GetText("ConnectionFlushDNS")); DnsManager.Invalidate(); }