mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Always use device in priority
This commit is contained in:
parent
8aa3927d7c
commit
ae8371b2cc
5 changed files with 14 additions and 10 deletions
|
@ -501,8 +501,8 @@ _intf_rule_v2ray_rules() {
|
|||
|
||||
_intf_rule() {
|
||||
local intf
|
||||
config_get intf $1 ifname
|
||||
[ -z "$intf" ] && intf=$(ifstatus "$1" | jsonfilter -q -e '@["l3_device"]')
|
||||
intf=$(ifstatus "$1" | jsonfilter -q -e '@["l3_device"]')
|
||||
[ -z "$intf" ] && config_get intf $1 ifname
|
||||
[ -n "$(echo $intf | grep '@')" ] && intf=$(ifstatus "$1" | jsonfilter -q -e '@["device"]')
|
||||
#count=$((count+1))
|
||||
config_get count $1 metric
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue