mirror of
https://github.com/kenzok8/small.git
synced 2025-01-08 12:08:21 +08:00
update 2024-08-24 16:13:42
This commit is contained in:
parent
9c63da5758
commit
aeb42b9a37
@ -488,6 +488,10 @@ local function processData(szType, content, add_mode, add_from)
|
|||||||
if info.net == 'grpc' then
|
if info.net == 'grpc' then
|
||||||
result.grpc_serviceName = info.path
|
result.grpc_serviceName = info.path
|
||||||
end
|
end
|
||||||
|
if info.net == 'splithttp' then
|
||||||
|
result.splithttp_host = info.host
|
||||||
|
result.splithttp_path = info.path
|
||||||
|
end
|
||||||
if not info.security then result.security = "auto" end
|
if not info.security then result.security = "auto" end
|
||||||
if info.tls == "tls" or info.tls == "1" then
|
if info.tls == "tls" or info.tls == "1" then
|
||||||
result.tls = "1"
|
result.tls = "1"
|
||||||
@ -496,6 +500,11 @@ local function processData(szType, content, add_mode, add_from)
|
|||||||
else
|
else
|
||||||
result.tls = "0"
|
result.tls = "0"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if result.type == "sing-box" and (result.transport == "mkcp" or result.transport == "splithttp") then
|
||||||
|
log("跳过节点:" .. result.remarks ..",因Sing-Box不支持" .. szType .. "协议的" .. result.transport .. "传输方式,需更换Xray。")
|
||||||
|
return nil
|
||||||
|
end
|
||||||
elseif szType == "ss" then
|
elseif szType == "ss" then
|
||||||
result.type = "SS"
|
result.type = "SS"
|
||||||
|
|
||||||
@ -821,11 +830,19 @@ local function processData(szType, content, add_mode, add_from)
|
|||||||
if params.serviceName then result.grpc_serviceName = params.serviceName end
|
if params.serviceName then result.grpc_serviceName = params.serviceName end
|
||||||
result.grpc_mode = params.mode
|
result.grpc_mode = params.mode
|
||||||
end
|
end
|
||||||
|
if params.type == 'splithttp' then
|
||||||
|
result.splithttp_host = params.host
|
||||||
|
result.splithttp_path = params.path
|
||||||
|
end
|
||||||
|
|
||||||
result.encryption = params.encryption or "none"
|
result.encryption = params.encryption or "none"
|
||||||
|
|
||||||
result.flow = params.flow or nil
|
result.flow = params.flow or nil
|
||||||
|
|
||||||
|
if result.type == "sing-box" and (result.transport == "mkcp" or result.transport == "splithttp") then
|
||||||
|
log("跳过节点:" .. result.remarks ..",因Sing-Box不支持" .. szType .. "协议的" .. result.transport .. "传输方式,需更换Xray。")
|
||||||
|
return nil
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
elseif szType == "ssd" then
|
elseif szType == "ssd" then
|
||||||
@ -971,6 +988,11 @@ local function processData(szType, content, add_mode, add_from)
|
|||||||
|
|
||||||
result.port = port
|
result.port = port
|
||||||
result.tls_allowInsecure = allowInsecure_default and "1" or "0"
|
result.tls_allowInsecure = allowInsecure_default and "1" or "0"
|
||||||
|
|
||||||
|
if result.type == "sing-box" and (result.transport == "mkcp" or result.transport == "splithttp") then
|
||||||
|
log("跳过节点:" .. result.remarks ..",因Sing-Box不支持" .. szType .. "协议的" .. result.transport .. "传输方式,需更换Xray。")
|
||||||
|
return nil
|
||||||
|
end
|
||||||
end
|
end
|
||||||
elseif szType == 'hysteria' then
|
elseif szType == 'hysteria' then
|
||||||
local alias = ""
|
local alias = ""
|
||||||
|
Loading…
Reference in New Issue
Block a user