Skip to content

Commit bd7f554

Browse files
feat: add 'advanced' field to HAProxyBackendServer #682
1 parent 52fb6f6 commit bd7f554

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class HAProxyBackendServer extends Model {
2323
public BooleanField $ssl;
2424
public BooleanField $sslserververify;
2525
public IntegerField $serverid;
26+
public StringField $advanced;
2627

2728
public function __construct(mixed $id = null, mixed $parent_id = null, mixed $data = [], ...$options) {
2829
# Set model attributes
@@ -80,6 +81,12 @@ class HAProxyBackendServer extends Model {
8081
help_text: 'The unique ID for this backend server. This value is set by the system for internal use and ' .
8182
'cannot be changed.',
8283
);
84+
$this->advanced = new StringField(
85+
default: '',
86+
allow_empty: true,
87+
help_text: 'Allows adding custom HAProxy server settings to the server.',
88+
);
89+
8390
parent::__construct($id, $parent_id, $data, ...$options);
8491
}
8592

0 commit comments

Comments
 (0)