mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix OMR-VPS error report
This commit is contained in:
parent
b41560f4e1
commit
58ad085f16
1 changed files with 3 additions and 2 deletions
|
@ -311,7 +311,7 @@ _set_redirect_ports_from_vps() {
|
|||
[ "$redirect_ports" = "0" ] && redirect_ports_request="disable"
|
||||
[ "$redirect_ports_request" != "$redirect_ports_current" ] && {
|
||||
settings='{"redirect_ports": "'$redirect_ports_request'"}'
|
||||
_set_json "shorewall" "$settings"
|
||||
return $(_set_json "shorewall" "$settings")
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -339,7 +339,7 @@ _set_mptcp_vps() {
|
|||
[ -z "$congestion" ] && congestion="bbr"
|
||||
if [ "$mptcp_enabled_current" != "$mptcp_enabled" ] || [ "$checksum_current" != "$checksum" ] || [ "$path_manager_current" != "$path_manager" ] || [ "$scheduler_current" != "$scheduler" ] || [ "$syn_retries_current" != "$syn_retries" ] || [ "$congestion_control_current" != "$congestion" ]; then
|
||||
settings='{"enabled" : "'$mptcp_enabled'", "checksum": "'$checksum'","path_manager": "'$path_manager'","scheduler": "'$scheduler'","syn_retries": "'$syn_retries'","congestion_control": "'$congestion'"}'
|
||||
_set_json "mptcp" "$settings"
|
||||
return $(_set_json "mptcp" "$settings")
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -571,6 +571,7 @@ _config_service() {
|
|||
vps_config=""
|
||||
_login
|
||||
[ -z "$token" ] && {
|
||||
logger -t "OMR-VPS" "Can't get token, try later"
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
set openmptcprouter.${servername}.admin_error=1
|
||||
EOF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue