Skip to content

Commit 8e1bea9

Browse files
fix: use redirect host and port in associated rules #659
1 parent 5a60e23 commit 8e1bea9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ class PortForward extends Model {
205205
protocol: $this->protocol->value,
206206
source: $this->source->value,
207207
source_port: $this->source_port->value,
208-
destination: $this->destination->value,
209-
destination_port: $this->destination_port->value,
208+
destination: $this->target->value,
209+
destination_port: $this->local_port->value,
210210
descr: "Associated rule for port forward rule {$this->associated_rule_id->value}",
211211
client: $this->client,
212212
);
@@ -246,8 +246,8 @@ class PortForward extends Model {
246246
protocol: $this->protocol->value,
247247
source: $this->source->value,
248248
source_port: $this->source_port->value,
249-
destination: $this->destination->value,
250-
destination_port: $this->destination_port->value,
249+
destination: $this->target->value,
250+
destination_port: $this->local_port->value,
251251
);
252252

253253
# Format any errors that occur during the update of the rule so its clear that its associated with the linked rule

0 commit comments

Comments
 (0)