diff options
Diffstat (limited to 'protocols/luci-proto-wireguard/root/usr/share/rpcd')
-rw-r--r-- | protocols/luci-proto-wireguard/root/usr/share/rpcd/ucode/luci.wireguard | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/luci-proto-wireguard/root/usr/share/rpcd/ucode/luci.wireguard b/protocols/luci-proto-wireguard/root/usr/share/rpcd/ucode/luci.wireguard index fc99919127..add810c8ae 100644 --- a/protocols/luci-proto-wireguard/root/usr/share/rpcd/ucode/luci.wireguard +++ b/protocols/luci-proto-wireguard/root/usr/share/rpcd/ucode/luci.wireguard @@ -52,6 +52,8 @@ const methods = { const wg_dump = popen("wg show all dump 2>/dev/null"); if (wg_dump) { + uci.load("network"); + for (let line = wg_dump.read('line'); length(line); line = wg_dump.read('line')) { const record = split(rtrim(line, '\n'), '\t'); |