Commit f833808b authored by Max Lv's avatar Max Lv

fix an issue that redsocks is blocked by stdout

parent f2292fb8
Subproject commit 76348e933a3a15176fdb54616d04bc6fdd3c8e0b Subproject commit 3bc3f03c182b4c4ea5138eb7bebcaafe7cc0f53b
...@@ -47,20 +47,20 @@ import com.github.shadowsocks.aidl.Config ...@@ -47,20 +47,20 @@ import com.github.shadowsocks.aidl.Config
object ConfigUtils { object ConfigUtils {
val SHADOWSOCKS = "{\"server\": \"%s\", \"server_port\": %d, \"local_port\": %d, \"password\": \"%s\", \"method\":\"%s\", \"timeout\": %d}" val SHADOWSOCKS = "{\"server\": \"%s\", \"server_port\": %d, \"local_port\": %d, \"password\": \"%s\", \"method\":\"%s\", \"timeout\": %d}"
val REDSOCKS = "base {" + val REDSOCKS = "base {\n" +
" log_debug = off;" + " log_debug = off;\n" +
" log_info = off;" + " log_info = off;\n" +
" log = stderr;" + " log = stderr;\n" +
" daemon = off;" + " daemon = off;\n" +
" redirector = iptables;" + " redirector = iptables;\n" +
" }\n" + "}\n" +
"redsocks {" + "redsocks {\n" +
" local_ip = 127.0.0.1;" + " local_ip = 127.0.0.1;\n" +
" local_port = 8123;" + " local_port = 8123;\n" +
" ip = 127.0.0.1;" + " ip = 127.0.0.1;\n" +
" port = %d;" + " port = %d;\n" +
" type = socks5;" + " type = socks5;\n" +
" }" "}\n"
val PDNSD_LOCAL = val PDNSD_LOCAL =
""" """
......
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