luci: add quic for destination override
This commit is contained in:
parent
64e8015588
commit
ca5ba183c2
@ -539,7 +539,7 @@ function gen_config(var)
|
|||||||
port = tonumber(local_socks_port),
|
port = tonumber(local_socks_port),
|
||||||
protocol = "socks",
|
protocol = "socks",
|
||||||
settings = {auth = "noauth", udp = true},
|
settings = {auth = "noauth", udp = true},
|
||||||
sniffing = {enabled = true, destOverride = {"http", "tls"}}
|
sniffing = {enabled = true, destOverride = {"http", "tls", "quic"}}
|
||||||
}
|
}
|
||||||
if local_socks_username and local_socks_password and local_socks_username ~= "" and local_socks_password ~= "" then
|
if local_socks_username and local_socks_password and local_socks_username ~= "" and local_socks_password ~= "" then
|
||||||
inbound.settings.auth = "password"
|
inbound.settings.auth = "password"
|
||||||
@ -577,7 +577,7 @@ function gen_config(var)
|
|||||||
protocol = "dokodemo-door",
|
protocol = "dokodemo-door",
|
||||||
settings = {network = "tcp,udp", followRedirect = true},
|
settings = {network = "tcp,udp", followRedirect = true},
|
||||||
streamSettings = {sockopt = {tproxy = "tproxy"}},
|
streamSettings = {sockopt = {tproxy = "tproxy"}},
|
||||||
sniffing = {enabled = sniffing and true or false, destOverride = {"http", "tls", (remote_dns_fake) and "fakedns"}, metadataOnly = false, routeOnly = route_only and true or nil, domainsExcluded = (sniffing and not route_only) and get_domain_excluded() or nil}
|
sniffing = {enabled = sniffing and true or false, destOverride = {"http", "tls", "quic", (remote_dns_fake) and "fakedns"}, metadataOnly = false, routeOnly = route_only and true or nil, domainsExcluded = (sniffing and not route_only) and get_domain_excluded() or nil}
|
||||||
}
|
}
|
||||||
local tcp_inbound = api.clone(inbound)
|
local tcp_inbound = api.clone(inbound)
|
||||||
tcp_inbound.tag = "tcp_redir"
|
tcp_inbound.tag = "tcp_redir"
|
||||||
|
Loading…
Reference in New Issue
Block a user