From d0add9b708464398b3221eaef5a345df59f6258b Mon Sep 17 00:00:00 2001 From: Ycarus Date: Wed, 6 Jun 2018 17:55:33 +0200 Subject: [PATCH] Add omrvpn interface --- mptcp/Makefile | 2 +- mptcp/files/usr/share/omr/post-tracking.d/post-tracking | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mptcp/Makefile b/mptcp/Makefile index acf48a761..93c31727a 100644 --- a/mptcp/Makefile +++ b/mptcp/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=mptcp -PKG_VERSION:=5.0 +PKG_VERSION:=6.0 PKG_RELEASE:=1 PKG_MAINTAINER:=Ycarus (Yannick Chabanois) diff --git a/mptcp/files/usr/share/omr/post-tracking.d/post-tracking b/mptcp/files/usr/share/omr/post-tracking.d/post-tracking index 341ab113a..fe229309a 100755 --- a/mptcp/files/usr/share/omr/post-tracking.d/post-tracking +++ b/mptcp/files/usr/share/omr/post-tracking.d/post-tracking @@ -74,7 +74,7 @@ if [ "$OMR_TRACKER_STATUS" = "ERROR" ]; then config_load network config_foreach set_route interface $OMR_TRACKER_INTERFACE fi - if [ "$OMR_TRACKER_INTERFACE" = "glorytun" ]; then + if [ "$OMR_TRACKER_INTERFACE" = "glorytun" ] || [ "$OMR_TRACKER_INTERFACE" = "omrvpn" ]; then if [ "$(uci -q show shadowsocks-libev.ss_rules.redir_udp)" = "" ] && [ "$(uci -q show shadowsocks-libev.hi2.mode)" = "tcp_and_udp" ]; then uci -q set shadowsocks-libev.ss_rules.redir_udp='hi2' /etc/init.d/shadowsocks-libev rules_down @@ -84,11 +84,11 @@ if [ "$OMR_TRACKER_STATUS" = "ERROR" ]; then exit 0 fi -if [ "$OMR_TRACKER_INTERFACE" = "glorytun" ]; then +if [ "$OMR_TRACKER_INTERFACE" = "glorytun" ] || [ "$OMR_TRACKER_INTERFACE" = "omrvpn" ]; then if [ "$default_gw" != "$OMR_TRACKER_DEVICE_GATEWAY" ] || [ "$default_gw" = "" ]; then _log "Tunnel up : Replace default route by $OMR_TRACKER_DEVICE_GATEWAY dev $OMR_TRACKER_DEVICE" ip route replace default scope global nexthop via $OMR_TRACKER_DEVICE_GATEWAY dev $OMR_TRACKER_DEVICE - if [ "$OMR_TRACKER_INTERFACE" = "glorytun" ]; then + if [ "$OMR_TRACKER_INTERFACE" = "glorytun" ] || [ "$OMR_TRACKER_INTERFACE" = "omrvpn" ]; then if [ "$(uci -q show shadowsocks-libev.ss_rules.redir_udp)" = "hi2" ]; then uci -q delete shadowsocks-libev.ss_rules.redir_udp /etc/init.d/shadowsocks-libev rules_down