From f7dfad9bd4b94ab6df4525a3931123d550752df2 Mon Sep 17 00:00:00 2001 From: Jan Brauer Date: Wed, 11 Feb 2015 22:30:57 +0100 Subject: [PATCH] Use argument instead of global --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index fbc3e06..268ed78 100644 --- a/main.go +++ b/main.go @@ -30,9 +30,9 @@ func serveHTTP() { } func udpAddrFromString(addr string) *net.UDPAddr { - host, portStr, err := net.SplitHostPort(*statsdListenAddress) + host, portStr, err := net.SplitHostPort(addr) if err != nil { - log.Fatal("Bad StatsD listening address", *statsdListenAddress) + log.Fatal("Bad StatsD listening address", addr) } if host == "" {