Skip to content

Commit 96eb2ee

Browse files
fix: make HAProxyBackend:: a Base64Field #640
1 parent 13b80a2 commit 96eb2ee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ namespace RESTAPI\Models;
44

55
use RESTAPI\Core\Model;
66
use RESTAPI\Dispatchers\HAProxyApplyDispatcher;
7+
use RESTAPI\Fields\Base64Field;
78
use RESTAPI\Fields\BooleanField;
89
use RESTAPI\Fields\IntegerField;
910
use RESTAPI\Fields\InterfaceField;
@@ -72,7 +73,7 @@ class HAProxyBackend extends Model {
7273
public NestedModelField $errorfiles;
7374
public BooleanField $cookie_attribute_secure;
7475
public StringField $advanced;
75-
public StringField $advanced_backend;
76+
public Base64Field $advanced_backend;
7677
public BooleanField $transparent_clientip;
7778
public InterfaceField $transparent_interface;
7879

@@ -439,7 +440,7 @@ class HAProxyBackend extends Model {
439440
allow_empty: true,
440441
help_text: 'The per server pass thru to apply to each server line.',
441442
);
442-
$this->advanced_backend = new StringField(
443+
$this->advanced_backend = new Base64Field(
443444
default: '',
444445
allow_empty: true,
445446
help_text: 'The backend pass thru to apply to the backend section.',

0 commit comments

Comments
 (0)