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

Merge pull request #131 from Ysurac/develop

Fix MPTCP over VPN with Wireguard
This commit is contained in:
suyuan 2021-04-28 22:01:38 +08:00 committed by GitHub
commit e296db5e12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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'"}'