1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix MPTCP over VPN with Wireguard

This commit is contained in:
Ycarus (Yannick Chabanois) 2021-04-28 13:06:59 +02:00
parent 44dc902961
commit 2e533166cc
3 changed files with 81 additions and 21 deletions

View file

@ -173,7 +173,7 @@ _set_wireguard_vps() {
local interface=$1
proto=$(uci -q get network.${interface}.proto)
if [ "$proto" = "wireguard" ]; then
ip="$(uci -q get network.${interface}.addresses)"
ip="$(uci -q get network.${interface}.addresses | cut -d/ -f1)"
key="$(uci -q get network.${interface}.public_key)"
if [ -z "$ipskey" ]; then
ipskey='{"ip": "'$ip'", "key": "'$key'"}'