From f11d8ade112a5b3e618a7fbce7ef4cdf72e95b39 Mon Sep 17 00:00:00 2001 From: Eneko Nieto Date: Mon, 19 Apr 2021 18:13:19 +0200 Subject: [PATCH] fix for last bugfix... --- limitator | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/limitator b/limitator index bde5e1d..26f2368 100644 --- a/limitator +++ b/limitator @@ -125,8 +125,8 @@ set_iptables_rule(){ iptables -I $IPTABLES_CHAIN 3 -s $EXCLUDE_NETWORK2 -j ACCEPT iptables -I $IPTABLES_CHAIN 4 -d $EXCLUDE_NETWORK2 -j ACCEPT fi - iptables -I --wait $IPTABLES_CHAIN $(get_iptables_quota_rule_num) -c 0 $(get_saved_used_bytes) -m quota --quota $(get_remaining_quota) -j ACCEPT 2>> $LOG_FILE - iptables -I --wait $IPTABLES_CHAIN $(($(get_iptables_quota_rule_num) + 1)) -j REJECT 2>> $LOG_FILE + iptables --wait -I $IPTABLES_CHAIN $(get_iptables_quota_rule_num) -c 0 $(get_saved_used_bytes) -m quota --quota $(get_remaining_quota) -j ACCEPT 2>> $LOG_FILE + iptables --wait -I $IPTABLES_CHAIN $(($(get_iptables_quota_rule_num) + 1)) -j REJECT 2>> $LOG_FILE # Iptables requires UTC time local start_time_utc=$(date -u +%H:%M --date=@$(date -d "today $START_TIME" +%s))