fix: vlees + ws general subscribe
Some checks are pending
Docker Build and Publish / build (push) Waiting to run

This commit is contained in:
Xboard 2025-01-19 14:37:49 +08:00 committed by GitHub
parent d81974d8bc
commit c9c72cc847
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -147,8 +147,8 @@ class General implements ProtocolInterface
case 'ws': case 'ws':
if ($path = data_get($protocol_settings, 'network_settings.path')) if ($path = data_get($protocol_settings, 'network_settings.path'))
$config['path'] = $path; $config['path'] = $path;
if ($host = data_get($protocol_settings, 'network_settings.headers.Host')) if ($wsHost = data_get($protocol_settings, 'network_settings.headers.Host'))
$config['host'] = $host; $config['host'] = $wsHost;
break; break;
case 'grpc': case 'grpc':
if ($path = data_get($protocol_settings, 'network_settings.serviceName')) if ($path = data_get($protocol_settings, 'network_settings.serviceName'))