]> git.ipfire.org Git - thirdparty/openwrt.git/commit
wireguard-tools: fix string indexing in endpoint host check main master
authorFelix Fietkau <nbd@nbd.name>
Fri, 20 Feb 2026 18:05:45 +0000 (18:05 +0000)
committerFelix Fietkau <nbd@nbd.name>
Fri, 20 Feb 2026 18:10:13 +0000 (19:10 +0100)
commit2256cfac685f9bc47bde8ef819076c3933593292
tree8492c4a426c95dfc147029bf05cf3c47d9b5a1ae
parente95cfd2ad75558be21d01838f816a65c5c016ce5
wireguard-tools: fix string indexing in endpoint host check

Use substr() instead of array index syntax to access the first
character of the endpoint host string, as ucode does not support
array-style indexing on strings.

Fixes: https://github.com/openwrt/openwrt/issues/22116
Fixes: 8f977b4a4055 ("wireguard-tools: fix handling of multi-value config options")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/utils/wireguard-tools/files/wireguard.uc