mirror of
https://github.com/openwrt/routing.git
synced 2025-12-21 21:24:32 +04:00
olsrd: fix meshing via wireguard tunnels
The procd script was not adding the wireguard interfaces. Add corner case
in the init script to allow meshing via wireguard.
Signed-off-by: Nick Hainke <vincent@systemli.org>
(cherry picked from commit 576967a2a3)
This commit is contained in:
@@ -624,6 +624,10 @@ olsrd_write_interface() {
|
|||||||
ifnames="$ifnames \"$IFNAME\""
|
ifnames="$ifnames \"$IFNAME\""
|
||||||
ifsglobal="$ifsglobal $IFNAME"
|
ifsglobal="$ifsglobal $IFNAME"
|
||||||
fi
|
fi
|
||||||
|
elif [[ "$(ip -details link show dev $interface)" == *"wireguard"* ]]; then
|
||||||
|
# wireguard interface
|
||||||
|
ifnames="$ifnames \"$interface\""
|
||||||
|
ifsglobal="$ifsglobal $interface"
|
||||||
else
|
else
|
||||||
log "$funcname() Warning: Interface '$interface' not found, skipped"
|
log "$funcname() Warning: Interface '$interface' not found, skipped"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user