We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88b5d7d commit 9472b2dCopy full SHA for 9472b2d
pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Models/OpenVPNClientExport.inc
@@ -377,14 +377,14 @@ class OpenVPNClientExport extends Model {
377
* @return array the proxy configuration array expected by pfSense functions
378
*/
379
private function __get_proxy_config(): array {
380
- return [
+ return $this->useproxy->value ? [
381
'ip' => $this->proxyaddr->value,
382
'port' => $this->proxyport->value,
383
'user' => $this->proxyuser->value,
384
'password' => $this->proxypass->value,
385
'proxy_type' => $this->useproxytype->value,
386
'proxy_authtype' => $this->useproxypass->value,
387
- ];
+ ] : [];
388
}
389
390
private function __get_export_filename(): string {
0 commit comments