luci-app-ssr-plus: fix subscribe bugs about grpc and sni
@@ -192,6 +192,13 @@ local function processData(szType, content)
result.read_buffer_size = 2
result.write_buffer_size = 2
end
+ if info.net == 'grpc' then
+ if info.path then
+ result.serviceName = info.path
+ elseif info.serviceName then
+ result.serviceName = info.serviceName
+ end
+ end
if info.net == 'quic' then
result.quic_guise = info.type
result.quic_key = info.key
@@ -202,7 +209,11 @@ local function processData(szType, content)
end
if info.tls == "tls" or info.tls == "1" then
result.tls = "1"
+ if info.sni then
+ result.tls_host = info.sni
+ elseif info.host then
result.tls_host = info.host
+ end
result.insecure = 1
else
result.tls = "0"
