os-firewall: fix typo in https://github.com/opnsense/plugins/issues/1720 leading to missing destination ports

This commit is contained in:
Ad Schellevis
2020-03-13 16:54:23 +01:00
parent b749701193
commit 5ec04f9e54
@@ -80,7 +80,7 @@ class FilterRuleContainerField extends ContainerField
if (!empty((string)$this->destination_not)) {
$result['destination']['not'] = true;
}
if (!empty((string)$this->source_port)) {
if (!empty((string)$this->destination_port)) {
$result['destination']['port'] = (string)$this->destination_port;
}
}