diff --git a/root/etc/homeproxy/scripts/generate_client.uc b/root/etc/homeproxy/scripts/generate_client.uc index 057e1bde..7e21ab32 100755 --- a/root/etc/homeproxy/scripts/generate_client.uc +++ b/root/etc/homeproxy/scripts/generate_client.uc @@ -244,12 +244,15 @@ function get_outbound(cfg) { return null; if (type(cfg) === 'array') { + if ('any' in cfg) + return 'any'; + let outbounds = []; for (let i in cfg) 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');