mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Glorytun UDP support and fix 6in4
This commit is contained in:
parent
e11e60bc5d
commit
af8dc743c2
8 changed files with 22 additions and 15 deletions
|
@ -12,7 +12,7 @@ reload_service() {
|
|||
iface=$(uci -q get glorytun.vpn.dev)
|
||||
[ -z "$iface" ] && exit 0
|
||||
addr=$(ip -4 addr show dev $iface | grep inet | awk '{print $2}' | cut -d/ -f1 | tr -d "\n")
|
||||
peer=$(ip -4 r list dev $iface | grep -v default | awk '/proto static/ {print $1}' | tr -d "\n")
|
||||
peer=$(ip -4 r list dev $iface | grep kernel | awk '/proto kernel/ {print $1}' | tr -d "\n")
|
||||
if [ "$addr" != "$(uci -q get network.omr6in4.ipaddr)" ] || [ "$peer" != "$(uci -q get network.omr6in4.peeraddr)" ]; then
|
||||
uci -q batch <<-EOF
|
||||
set network.omr6in4.ipaddr=$addr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue