Skip to content

Commit f9102dd

Browse files
Added create_gw field (#642)
1 parent 3734953 commit f9102dd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,12 @@ class OpenVPNClient extends Model {
387387
allow_null: true,
388388
help_text: 'The send and receive buffer size for OpenVPN. Set to null to use the system default.',
389389
);
390+
$this->create_gw = new StringField(
391+
default: 'both',
392+
choices: ['both', 'v4only', 'v6only'],
393+
help_text: 'The gateway type(s) that will be created when a virtual interface is assigned ' .
394+
'to this OpenVPN server',
395+
);
390396
$this->verbosity_level = new IntegerField(
391397
default: 1,
392398
choices: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11],

0 commit comments

Comments
 (0)