From 7fb94564922c336b2bc0cc5efdc04d898935a76b Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Tue, 1 Oct 2024 19:58:41 +0200 Subject: [PATCH] rename 'readArgs' to better describe variable replacement --- proxy/util.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/util.go b/proxy/util.go index 8e25fff..389a64c 100644 --- a/proxy/util.go +++ b/proxy/util.go @@ -9,7 +9,7 @@ import ( "golang.org/x/sys/windows/registry" ) -func readArgs(replaceVariable bool, args []string, configCmd string) ([]string, string) { +func processVars(replaceVariable bool, args []string, configCmd string) ([]string, string) { var configArgs []string for _, arg := range args { @@ -62,7 +62,7 @@ func generateCommands(variants []*util.Variant, configCmd, proxyServer string) [ for _, variant := range variants { replaceVariable := variant.Type == util.VARIABLE - configArgs, configCmd := readArgs(replaceVariable, variant.Arguments, configCmd) + configArgs, configCmd := processVars(replaceVariable, variant.Arguments, configCmd) configArgs, configCmd = applyProxy(configArgs, configCmd, proxyServer, variant) commands = append(commands, &util.Command{Name: configCmd, Arguments: configArgs})