mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
sync (#406)
This commit is contained in:
commit
a307fa8f8e
5 changed files with 5 additions and 5 deletions
|
@ -271,7 +271,7 @@ while true; do
|
|||
}
|
||||
|
||||
if [ -n "$OMR_TRACKER_DEVICE" ] && [ -d "/sys/class/net/$OMR_TRACKER_DEVICE" ]; then
|
||||
if [ -n "$(ip link show $OMR_TRACKER_DEVICE | grep UP)" ]; then
|
||||
if [ -n "$(ip link show $OMR_TRACKER_DEVICE | grep 'state UP')" ]; then
|
||||
# retrieve iface ip and gateway
|
||||
if ([ "$OMR_TRACKER_FAMILY" = "ipv4" ] || [ "$OMR_TRACKER_FAMILY" = "ipv4ipv6" ]) && [ "$OMR_TRACKER_INTERFACE_PROTO" != "dhcpv6" ]; then
|
||||
OMR_TRACKER_DEVICE_IP=$(ip -4 -br addr ls dev "$OMR_TRACKER_DEVICE" | awk -F'[ /]+' '{print $3}')
|
||||
|
|
|
@ -15,7 +15,7 @@ ss_confdir=/var/etc/shadowsocks-libev
|
|||
ss_bindir=/usr/bin
|
||||
|
||||
ssrules_uc="/usr/share/ss-rules/ss-rules.uc"
|
||||
ssrules_nft="/etc/nftables.d/90-ss-rules.nft"
|
||||
ssrules_nft="/etc/nftables.d/90-proxy-rules.nft"
|
||||
|
||||
ss_mkjson_server_conf() {
|
||||
local cfgserver
|
||||
|
|
|
@ -15,7 +15,7 @@ ss_confdir=/var/etc/shadowsocks-rust
|
|||
ss_bindir=/usr/bin
|
||||
|
||||
ssrules_uc="/usr/share/ssr-rules/ss-rules.uc"
|
||||
ssrules_nft="/etc/nftables.d/90-ssr-rules.nft"
|
||||
ssrules_nft="/etc/nftables.d/90-proxy-rules.nft"
|
||||
|
||||
ss_mkjson_server_conf() {
|
||||
local cfgserver
|
||||
|
|
|
@ -13,7 +13,7 @@ NAME=v2ray
|
|||
CONFIG_FOLDER=/var/etc/$NAME
|
||||
|
||||
v2rrules_uc="/usr/share/v2ray-rules/v2r-rules.uc"
|
||||
v2rrules_nft="/etc/nftables.d/90-v2r-rules.nft"
|
||||
v2rrules_nft="/etc/nftables.d/90-proxy-rules.nft"
|
||||
|
||||
FILE_V2RAY_DNSMASQ=/tmp/dnsmasq.d/$NAME
|
||||
FILE_V2RAY_DNSMASQ_CACHE=/tmp/$NAME.dnsmasq.cache
|
||||
|
|
|
@ -13,7 +13,7 @@ NAME=xray
|
|||
CONFIG_FOLDER=/var/etc/$NAME
|
||||
|
||||
xrrules_uc="/usr/share/xray-rules/xr-rules.uc"
|
||||
xrrules_nft="/etc/nftables.d/90-xr-rules.nft"
|
||||
xrrules_nft="/etc/nftables.d/90-proxy-rules.nft"
|
||||
|
||||
FILE_XRAY_DNSMASQ=/tmp/dnsmasq.d/$NAME
|
||||
FILE_XRAY_DNSMASQ_CACHE=/tmp/$NAME.dnsmasq.cache
|
||||
|
|
Loading…
Reference in a new issue