From 56a6df9259a317059297f5ed512b962356d2fd53 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Thu, 31 Oct 2024 18:03:31 +0100 Subject: [PATCH] bugfix: clear arguments slice of command after injecting variables --- proxy/util.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proxy/util.go b/proxy/util.go index 1b734dd..fc4bdfa 100644 --- a/proxy/util.go +++ b/proxy/util.go @@ -21,6 +21,8 @@ func processVars(cmd *util.Command, isVariableType bool) { for _, arg := range cmd.Arguments { cmd.Name = strings.Replace(cmd.Name, "$PRSW_ARG", arg, 1) } + + cmd.Arguments = nil } func injectProxy(cmd *util.Command, variant *util.Variant, proxyServer string) {