mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
opt tls
This commit is contained in:
parent
7f9ad68e1b
commit
23bfb20307
@ -41,7 +41,7 @@ class ServerController extends Controller
|
||||
$params['tags'] = json_encode($params['tags']);
|
||||
}
|
||||
|
||||
if (isset($params['tls'])) {
|
||||
if ((int)$params['tls']) {
|
||||
if (!isset($params['tls_pem']) || !isset($params['tls_key'])) {
|
||||
abort(500, '开启TLS必须填写TLS证书');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user