|
|
@@ -98,12 +98,12 @@ $BIN/v-update-firewall
|
|
|
#----------------------------------------------------------#
|
|
|
|
|
|
# Fix missing port value in log if zero
|
|
|
-if [ -z "$port" ]; then
|
|
|
- port="0"
|
|
|
+if [ -z "$port_ext" ]; then
|
|
|
+ port_ext="0"
|
|
|
fi
|
|
|
|
|
|
# Logging
|
|
|
-$BIN/v-log-action "system" "Info" "Firewall" "Added firewall rule (Action: $action, Port: $port, Protocol: $protocol)."
|
|
|
+$BIN/v-log-action "system" "Info" "Firewall" "Added firewall rule (Action: $action, Port: $port_ext, Protocol: $protocol)."
|
|
|
log_event "$OK" "$ARGUMENTS"
|
|
|
|
|
|
exit
|