aboutsummaryrefslogtreecommitdiff
path: root/cmd/web/gethostip.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/web/gethostip.go')
-rw-r--r--cmd/web/gethostip.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/web/gethostip.go b/cmd/web/gethostip.go
index 3788ac1..ea2df83 100644
--- a/cmd/web/gethostip.go
+++ b/cmd/web/gethostip.go
@@ -2,6 +2,10 @@
package main
+import (
+ "net"
+)
+
// GetHostIP attempts to guess the IP address of the current machine and
// returns that. Simply bails at the first non sane looking IP and returns it.
// Not ideal but it should work well enough most of the time