Skip to content

Commit

Permalink
fix: make HAProxyBackend:: a Base64Field #640
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhendrickson13 committed Jan 11, 2025
1 parent 13b80a2 commit 96eb2ee
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ namespace RESTAPI\Models;

use RESTAPI\Core\Model;
use RESTAPI\Dispatchers\HAProxyApplyDispatcher;
use RESTAPI\Fields\Base64Field;
use RESTAPI\Fields\BooleanField;
use RESTAPI\Fields\IntegerField;
use RESTAPI\Fields\InterfaceField;
Expand Down Expand Up @@ -72,7 +73,7 @@ class HAProxyBackend extends Model {
public NestedModelField $errorfiles;
public BooleanField $cookie_attribute_secure;
public StringField $advanced;
public StringField $advanced_backend;
public Base64Field $advanced_backend;
public BooleanField $transparent_clientip;
public InterfaceField $transparent_interface;

Expand Down Expand Up @@ -439,7 +440,7 @@ class HAProxyBackend extends Model {
allow_empty: true,
help_text: 'The per server pass thru to apply to each server line.',
);
$this->advanced_backend = new StringField(
$this->advanced_backend = new Base64Field(
default: '',
allow_empty: true,
help_text: 'The backend pass thru to apply to the backend section.',
Expand Down

0 comments on commit 96eb2ee

Please sign in to comment.