File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1010
1111ip_name=${1}
1212data_source=${2}
13- ip_version=${3-v4}
14- autoupdate=${4-yes}
15- force=${5-no}
13+ ip_version=${3: - v4}
14+ autoupdate=${4: - yes}
15+ force=${5: - no}
1616
1717# Includes
1818source $HESTIA /func/main.sh
124124inet_ver=" inet"
125125[ " $ip_version " == " v6" ] && inet_ver=" inet6"
126126
127- $IPSET_BIN create " $ip_name " -exist hash:net family $inet_ver
127+ $IPSET_BIN -quiet create -exist " $ip_name " hash:net family $inet_ver
128128$IPSET_BIN -quiet destroy " ${ip_name} -tmp"
129129$IPSET_BIN create " ${ip_name} -tmp" -exist hash:net family $inet_ver maxelem 1048576
130130$IPSET_BIN flush " ${ip_name} -tmp"
Original file line number Diff line number Diff line change 1010# ----------------------------------------------------------#
1111
1212# Force refresh
13- force=${1-no}
13+ force=${1: - no}
1414
1515# Includes
1616source $HESTIA /func/main.sh
You can’t perform that action at this time.
0 commit comments