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

Merge branch 'test' into develop

This commit is contained in:
suyuan 2021-04-28 22:02:02 +08:00
commit 64d525e955
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'"}'