1
0
Fork 0
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:
Ycarus (Yannick Chabanois) 2019-09-11 08:37:38 +02:00
parent 13b8d06d41
commit 2a384793d8

View file

@ -10,7 +10,9 @@ EXTRA_COMMANDS="reload_rules"
_add_proto() {
protoname=$1
echo "add_custom $protoname" >/proc/net/xt_ndpi/proto
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