From 0fc3eda77004f41c5f0a804028da2d90b0373ea7 Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Tue, 24 Aug 2021 22:25:40 -0400 Subject: Another development snapshot. Updated license. Added Swagger documentation--embedded! Note about 'swaggo' --- cmd/web/gethostip.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmd/web/gethostip.go') 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 -- cgit v1.2.3