summaryrefslogtreecommitdiff
path: root/ip.go
diff options
context:
space:
mode:
Diffstat (limited to 'ip.go')
-rw-r--r--ip.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/ip.go b/ip.go
index a24fb1f..9a11b8f 100644
--- a/ip.go
+++ b/ip.go
@@ -17,11 +17,10 @@ func ip(w http.ResponseWriter, r *http.Request) {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
- fmt.Fprintln(w, addr)
host, err := net.LookupAddr(addr)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
- fmt.Fprintln(w, host)
+ fmt.Fprintln(w, addr, host)
}