Skip to content

Commit

Permalink
fix:一键/单个限速-对预添加终端(终端未上线)未生效
Browse files Browse the repository at this point in the history
  • Loading branch information
weifashi committed Oct 16, 2023
1 parent 870197f commit 933a409
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions hi/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -2392,11 +2392,11 @@ function host_func() {
ipseg=$(echo $ip|awk -F"." '{print $1"."$2"."$3}')
qos_up=0
qos_down=0
[-e "/etc/config/qos" ] && {
_mac=$(echo $mac | sed 's/://g')
qos_up=$(uci get qos.$_mac.upload)
qos_down=$(uci get qos.$_mac.download)
}
[ -e "/etc/config/qos" ] && {
_mac=$(echo $mac | sed 's/://g'|tr A-Z a-z)
qos_up=$(uci get qos.$_mac.upload)
qos_down=$(uci get qos.$_mac.download)
}
if [ -n "$(grep $ipseg /etc/config/network)" ]; then
tmp='{"mac":"'$mac'","ip":"'$ip'","name":"'$name'","qos_up":"'$qos_up'","qos_down":"'$qos_down'"}'
if [ -z "$list" ]; then
Expand Down

0 comments on commit 933a409

Please sign in to comment.