File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Models Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments