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

Check wireguard ip

This commit is contained in:
Ycarus (Yannick Chabanois) 2021-05-09 08:35:55 +00:00
parent 4b8a9432cd
commit a02b306243

View file

@ -44,6 +44,10 @@ _dsvpn() {
[ -n "$(ip -6 r show 64:ff9b::/96 dev dsvpn0)" ] && ip -6 r del 64:ff9b::/96 dev dsvpn0 2>&1 >/dev/null
}
_wireguard() {
[ -n "$(ip a show dev wg0)" ] && ip a add 10.255.247.1/24 dev wg0 2>&1 >/dev/null
}
_omr_api() {
[ -z "$(curl -s -k -m 30 https://127.0.0.1:65500/)" ] && {
@ -115,6 +119,7 @@ while true; do
_glorytun_udp
_glorytun_tcp
_dsvpn
_wireguard
_multipath
_omr_api
_lan_route