mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-11-02 07:50:37 +00:00
修复获取ws地址bug
This commit is contained in:
parent
cb58579754
commit
89a1bda0e4
@ -24,7 +24,7 @@ if (!function_exists('getWorkerManUrl')) {
|
||||
*/
|
||||
function getWorkerManUrl()
|
||||
{
|
||||
$ws = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS']) == 'on' ? 'wss://' : 'ws://';
|
||||
$ws = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'wss://' : 'ws://';
|
||||
$host = $_SERVER['HTTP_HOST'];
|
||||
$data['admin'] = $ws . $host . '/notice';
|
||||
$data['channel'] = $ws . $host . '/msg';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user