statsd.net icon indicating copy to clipboard operation
statsd.net copied to clipboard

No graphite host configured in win hosts file

Open Jailman opened this issue 8 years ago • 0 comments

If I'm wrong please correct me, I've changed line starting from 51 in Utility.cs to the codes below.

    public static IPAddress HostToIPv4Address(string host)
    {
        try
        {
            return Dns.GetHostAddresses(host).First(p => p.AddressFamily == AddressFamily.InterNetwork);
        }
        catch (Exception)
        {
            Console.WriteLine("[statsd.net] ERROR - Host error! No graphite host configured!");
            System.Threading.Thread.Sleep(5000);
            Environment.Exit(1);
            throw;
        }
    }

Jailman avatar Feb 06 '17 09:02 Jailman