Skip to content

Commit 3df3448

Browse files
committed
Don’t show warning ACP message on localhosts
Signed-off-by: Matt Friedman <maf675@gmail.com>
1 parent 8589a68 commit 3df3448

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

acp/wpn_acp_module.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function display_settings()
106106
'U_ACTION' => $this->u_action,
107107
]);
108108

109-
if (!$this->request->server('HTTPS', false))
109+
if (!$this->request->server('HTTPS', false) && $this->request->server('SERVER_NAME') !== 'localhost')
110110
{
111111
$this->errors[] = $this->lang->lang('WEBPUSH_INSECURE_SERVER_ERROR');
112112
}

0 commit comments

Comments
 (0)