From 06637360d61d8af546849c0cb503add5b4325bbb Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Tue, 1 Oct 2024 19:59:34 +0200 Subject: [PATCH] rename 'applyProxy' to better describe applications of proxy server string --- proxy/util.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/util.go b/proxy/util.go index 389a64c..c959b29 100644 --- a/proxy/util.go +++ b/proxy/util.go @@ -26,7 +26,7 @@ func processVars(replaceVariable bool, args []string, configCmd string) ([]strin return configArgs, configCmd } -func applyProxy(configArgs []string, configCmd, proxyServer string, variant *util.Variant) ([]string, string) { +func injectProxy(configArgs []string, configCmd, proxyServer string, variant *util.Variant) ([]string, string) { // Skip, no proxy provided or proxy option discarded if proxyServer == "" || variant.DiscardProxy { return configArgs, configCmd @@ -63,7 +63,7 @@ func generateCommands(variants []*util.Variant, configCmd, proxyServer string) [ replaceVariable := variant.Type == util.VARIABLE configArgs, configCmd := processVars(replaceVariable, variant.Arguments, configCmd) - configArgs, configCmd = applyProxy(configArgs, configCmd, proxyServer, variant) + configArgs, configCmd = injectProxy(configArgs, configCmd, proxyServer, variant) commands = append(commands, &util.Command{Name: configCmd, Arguments: configArgs}) }