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:
parent
44dc902961
commit
2e533166cc
3 changed files with 81 additions and 21 deletions
|
@ -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'"}'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue