1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Add bypass IPs and network support

This commit is contained in:
Ycarus 2018-05-15 17:20:49 +02:00
parent 1bdb327224
commit 602aa8a127
7 changed files with 83 additions and 16 deletions

View file

@ -0,0 +1,29 @@
#!/bin/sh /etc/rc.common
# shellcheck disable=SC2039
# vim: set noexpandtab tabstop=4 shiftwidth=4 softtabstop=4 :
# shellcheck disable=SC2034
{
START=90
STOP=10
USE_PROCD=1
}
_bypass_ip() {
local ip="$1"
ipset add ss_rules_dst_bypass $ip
}
start_service() {
config_load omr-bypass
config_list_foreach ips "ip" _bypass_ip
}
service_triggers() {
procd_add_reload_trigger omr-bypass shadowsocks-libev
}
reload_service() {
stop
start
}