mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-13 02:51:50 +00:00
Less log for omr-bypass
This commit is contained in:
parent
13b8d06d41
commit
2a384793d8
1 changed files with 3 additions and 1 deletions
|
@ -10,7 +10,9 @@ EXTRA_COMMANDS="reload_rules"
|
|||
|
||||
_add_proto() {
|
||||
protoname=$1
|
||||
if [ "$(dd if=/proc/net/xt_ndpi/proto bs=4096 | grep $protoname)" = "" ]; then
|
||||
echo "add_custom $protoname" >/proc/net/xt_ndpi/proto
|
||||
fi
|
||||
hosts="$( uci -q get omr-bypass.$protoname.url )"
|
||||
for url in $hosts; do
|
||||
echo "$protoname:$url" >/proc/net/xt_ndpi/host_proto
|
||||
|
|
Loading…
Reference in a new issue