]> git.ipfire.org Git - thirdparty/openwrt.git/commit
wireguard-tools: fix handling of multi-value config options
authorFelix Fietkau <nbd@nbd.name>
Fri, 20 Feb 2026 08:50:44 +0000 (08:50 +0000)
committerFelix Fietkau <nbd@nbd.name>
Fri, 20 Feb 2026 08:54:41 +0000 (08:54 +0000)
commit8f977b4a405533f3613dab716f983ba9500eb3ff
tree2ffaead7376f86a1e4389fa45b6819b81ba9f5b7
parent6c4c988a5fddbc9560b1d63a3a983647d40f7b63
wireguard-tools: fix handling of multi-value config options

Config options like addresses and ip6prefix can be passed as either a
space-separated string or an array. Add a to_array() helper and use it
consistently for all multi-value options (addresses, ip6prefix,
allowed_ips).

Fixes: https://github.com/openwrt/openwrt/issues/22102
Fixes: 41bc454602f1 ("wireguard-tools: rewrite proto handler in ucode")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/utils/wireguard-tools/files/wireguard.uc