Replaced <= 0 with < 1 for readability's sake

This commit is contained in:
Seednode 2022-12-20 18:24:07 -06:00
parent cf79bc1d3d
commit 8ddbe8b2c6
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ import (
"github.com/spf13/cobra"
)
var Version = "0.28.2"
var Version = "0.28.3"
func init() {
rootCmd.AddCommand(versionCmd)

View File

@ -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
}