mirror of
https://github.com/Baipyrus/ProxySwitcher.git
synced 2024-12-26 04:31:45 +00:00
bugfix: clear arguments slice of command after injecting variables
This commit is contained in:
parent
a69abda660
commit
56a6df9259
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user