diff --git a/root/etc/homeproxy/scripts/generate_client.uc b/root/etc/homeproxy/scripts/generate_client.uc index 057e1bde..cfa579fe 100755 --- a/root/etc/homeproxy/scripts/generate_client.uc +++ b/root/etc/homeproxy/scripts/generate_client.uc @@ -245,11 +245,14 @@ function get_outbound(cfg) { if (type(cfg) === 'array') { let outbounds = []; - for (let i in cfg) + for (let i in cfg) { + if (i === 'any') + return 'any'; push(outbounds, get_outbound(i)); + } return outbounds; } else { - if (cfg in ['any', 'direct-out', 'block-out']) { + if (cfg in ['direct-out', 'block-out']) { return cfg; } else { const node = uci.get(uciconfig, cfg, 'node');