From 5078363348241ede1a9b75d1cf0e67d8313cac28 Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Tue, 24 Nov 2020 21:21:44 +0100 Subject: [PATCH] Harmonize parameter processing order. --- ddos-mitigator.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ddos-mitigator.sh b/ddos-mitigator.sh index adcf837..f90c0e1 100755 --- a/ddos-mitigator.sh +++ b/ddos-mitigator.sh @@ -202,14 +202,14 @@ function set_default_values() { if [[ -z "${autopilot}" ]]; then autopilot=0 fi - if [[ -z "${netmask}" ]]; then - netmask=0 + if [[ -z "${bancountries}" ]]; then + bancountries=("CN") fi if [[ -z "${jail}" ]]; then jail="apache-auth" fi - if [[ -z "${bancountries}" ]]; then - bancountries=("CN") + if [[ -z "${netmask}" ]]; then + netmask=0 fi if [[ -z "${port}" ]]; then port=443