From 7b47ca1c58245fd0dc367e1bbc30ae0e76559fff Mon Sep 17 00:00:00 2001 From: nils Date: Wed, 7 Aug 2024 22:56:19 +0200 Subject: [PATCH] solve small linter nitpicks --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 0f32766..8e4dd2b 100644 --- a/main.go +++ b/main.go @@ -16,9 +16,9 @@ import ( var logStdout = log.New() var logFile = log.New() -var listenPort = 8080 // port to listen on +var listenPort = 8080 // port to listen on var disableXForwardedFor bool // whether to disable parsing the X-Forwarded-For header or not -var allowPrivate bool // whether to allow private IP ranges or not +var allowPrivate bool // whether to allow private IP ranges or not func init() { logStdout.SetFormatter(&log.TextFormatter{ @@ -84,7 +84,7 @@ func runner(remoteip string, command string, args ...string) string { return string(cmd) } -// validatehosts checks the given host+port combinations for validity and returns valid hosts + valid ports seperately. +// validatehosts checks the given host+port combinations for validity and returns valid hosts + valid ports separately. func validatehosts(hosts []string) ([]string, []string) { var validHosts []string var validPorts []string