Skip to content

No graphite host configured in win hosts file #44

@Jailman

Description

@Jailman

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;
        }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions