Commit 3293280e authored by Mygod's avatar Mygod

Use UDP fallback if available in transproxy

parent 27589723
......@@ -44,7 +44,8 @@ class TransproxyService : Service(), LocalDnsService.Interface {
"-u",
"-l", DataStore.portLocalDns.toString(), // ss-tunnel listens on the same port as overture
"-L", proxy.profile.remoteDns.split(",").first().trim() + ":53",
"-c", proxy.configFile!!.absolutePath) // config is already built by BaseService.Interface
// config is already built by BaseService.Interface
"-c", (data.udpFallback ?: proxy).configFile!!.absolutePath)
if (DataStore.tcpFastOpen) cmd += "--fast-open"
data.processes.start(cmd)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment