Skip to content

Commit a45a75a

Browse files
fix(PortForward): set disabled value during associated rule creation/update
1 parent 5e8000d commit a45a75a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Models/PortForward.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ class PortForward extends Model {
209209
if ($this->associated_rule_id->value and $this->associated_rule_id->value !== 'pass') {
210210
$firewall_rule = new FirewallRule(
211211
type: 'pass',
212+
disabled: $this->disabled->value,
212213
interface: [$this->interface->value],
213214
ipprotocol: $this->ipprotocol->value,
214215
protocol: $this->protocol->value,
@@ -250,6 +251,7 @@ class PortForward extends Model {
250251
$firewall_rule = $rule_q->first();
251252
$firewall_rule->from_representation(
252253
type: 'pass',
254+
disabled: $this->disabled->value,
253255
interface: [$this->interface->value],
254256
ipprotocol: $this->ipprotocol->value,
255257
protocol: $this->protocol->value,

0 commit comments

Comments
 (0)