diff --git a/cmd/version.go b/cmd/version.go index 3b74773..aa3cf03 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -10,7 +10,7 @@ import ( "github.com/spf13/cobra" ) -var Version = "0.28.2" +var Version = "0.28.3" func init() { rootCmd.AddCommand(versionCmd) diff --git a/cmd/web.go b/cmd/web.go index ff2e8e2..576f3ef 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -209,7 +209,7 @@ func refererToUri(referer string) string { func getRealIp(r *http.Request) string { remoteAddr := strings.SplitAfter(r.RemoteAddr, ":") - if len(remoteAddr) <= 0 { + if len(remoteAddr) < 1 { return r.RemoteAddr }