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