aboutsummaryrefslogtreecommitdiff
path: root/cmd/web/gethostip.go
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2021-08-24 22:25:40 -0400
committerMitchell Riedstra <mitch@riedstra.dev>2021-08-24 22:25:40 -0400
commit0fc3eda77004f41c5f0a804028da2d90b0373ea7 (patch)
treeedf6d74e6a2b7140350eab1e40d0fbf70e10f87c /cmd/web/gethostip.go
parentf4fcd237b2d0eb950fc15a8af1fb0894b6ad6359 (diff)
downloadsteam-export-0fc3eda77004f41c5f0a804028da2d90b0373ea7.tar.gz
steam-export-0fc3eda77004f41c5f0a804028da2d90b0373ea7.tar.xz
Another development snapshot. Updated license. Added Swagger documentation--embedded! Note about 'swaggo'
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