summaryrefslogtreecommitdiff
path: root/ip.go
diff options
context:
space:
mode:
Diffstat (limited to 'ip.go')
-rw-r--r--ip.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ip.go b/ip.go
index 787c511..967d5cf 100644
--- a/ip.go
+++ b/ip.go
@@ -1,7 +1,7 @@
package main
import (
- "fmt"
+ "io"
"net"
"net/http"
)
@@ -17,5 +17,5 @@ func ip(w http.ResponseWriter, r *http.Request) {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
- fmt.Fprintln(w, addr)
+ io.WriteString(w, addr)
}