File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/KubernetesPfSenseController/Plugin Expand file tree Collapse file tree 1 file changed +2
-2
lines changed 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