File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/KubernetesPfSenseController/Plugin Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -111,11 +111,11 @@ data:
111
111
definition:
112
112
name: some-frontend-name
113
113
type: http
114
- forwardfor: yes
114
+ forwardfor: " yes"
115
115
status: active
116
116
backend_serverpool: some-backend-name
117
117
a_extaddr:
118
118
item:
119
119
- extaddr: wan_ipv4
120
120
extaddr_port: 443
121
- extaddr_ssl: yes
121
+ extaddr_ssl: " yes"
Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ public function doAction()
230
230
231
231
foreach ($ item ['spec ' ]['rules ' ] as $ ruleKey => $ rule ) {
232
232
$ aclName = $ frontend ['name ' ].'-rule- ' .$ ruleKey ;
233
- $ host = $ rule ['host ' ];
233
+ $ host = $ rule ['host ' ] ?? '' ;
234
234
//$host = "*.${host}"; // for testing purposes only
235
235
//$host = ""; // for testing purposes only
236
236
if (!$ this ->shouldCreateRule ($ rule )) {
@@ -425,7 +425,7 @@ public function doAction()
425
425
*/
426
426
private function shouldCreateRule ($ rule )
427
427
{
428
- $ hostName = $ rule ['host ' ];
428
+ $ hostName = $ rule ['host ' ] ?? '' ;
429
429
$ pluginConfig = $ this ->getConfig ();
430
430
if (!empty ($ pluginConfig ['allowedHostRegex ' ])) {
431
431
$ allowed = @preg_match ($ pluginConfig ['allowedHostRegex ' ], $ hostName );
You can’t perform that action at this time.
0 commit comments