summaryrefslogtreecommitdiff
path: root/ip.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-09-16 15:29:24 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-09-16 15:29:24 +0200
commit7f4bfb126360c9f174beb4b00761a9f26c6bc337 (patch)
treea6049f2ecc5772e6381e30ebb6a6ec974e0b4d9c /ip.go
parent232c466c242cd6c2215570b9635efc731cafd194 (diff)
Add prometheus
Diffstat (limited to 'ip.go')
-rw-r--r--ip.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/ip.go b/ip.go
index 9a11b8f..787c511 100644
--- a/ip.go
+++ b/ip.go
@@ -17,10 +17,5 @@ func ip(w http.ResponseWriter, r *http.Request) {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
- host, err := net.LookupAddr(addr)
- if err != nil {
- http.Error(w, err.Error(), http.StatusInternalServerError)
- return
- }
- fmt.Fprintln(w, addr, host)
+ fmt.Fprintln(w, addr)
}