mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-08 05:04:21 +08:00
✨ Sync 2026-10-11 20:48:25
This commit is contained in:
1 parent
78f0ba8251
commit
5ce75c9f2b
45 files changed
+54
-879
No files matched your search
@@ -21,8 +21,6 @@ if (match(proxy_mode, /tun/)) {
|
||||
outbound_node = uci.get(cfgname, 'config', 'main_node') || 'nil';
|
||||
|
||||
if (outbound_node !== 'nil') {
|
||||
/* the name is interpolated into an nftables rule: keep it to what an
|
||||
interface name can actually be */
|
||||
const raw_tun = trim(uci.get(cfgname, 'infra', 'tun_name') ?? '');
|
||||
tun_name = match(raw_tun, /^[A-Za-z0-9._-]{1,15}$/) ? raw_tun : 'singtun0';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user