mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix slow boot when omr-bypass is used
This commit is contained in:
parent
832eabb742
commit
8db06a50a2
3 changed files with 30 additions and 10 deletions
|
@ -62,6 +62,7 @@ ss_mkjson_server_conf_() {
|
|||
ss_mkjson_common_conf() {
|
||||
[ "$ipv6_first" = 0 ] && ipv6_first=false || ipv6_first=true
|
||||
[ "$fast_open" = 0 ] && fast_open=false || fast_open=true
|
||||
[ "$no_delay" = 0 ] && no_delay=false || no_delay=true
|
||||
[ "$reuse_port" = 0 ] && reuse_port=false || reuse_port=true
|
||||
[ "$mptcp" = 0 ] && mptcp=false || mptcp=true
|
||||
[ "$syslog" = 0 ] && syslog=false || syslog=true
|
||||
|
@ -69,6 +70,7 @@ ss_mkjson_common_conf() {
|
|||
"use_syslog": $syslog,
|
||||
"ipv6_first": $ipv6_first,
|
||||
"fast_open": $fast_open,
|
||||
"no_delay": $no_delay,
|
||||
"mptcp": $mptcp,
|
||||
"reuse_port": $reuse_port,
|
||||
${local_address:+${q}local_address${q}: ${q}$local_address${q},}
|
||||
|
@ -330,6 +332,7 @@ rules_exist() {
|
|||
|
||||
rules_up() {
|
||||
rules_exist && return 0
|
||||
[ "$(ps w | grep ss- | grep -v ss-)" = "" ] && return 0
|
||||
logger -t "Shadowsocks" "Rules UP"
|
||||
config_load shadowsocks-libev
|
||||
for cfgtype in ss_redir; do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue