Commit 4c45c923 authored by Max Lv's avatar Max Lv

Update shadowsocks-libev

parent 2181e664
Subproject commit 19e222bad8416f20b7694bff75f2cee72a70701e Subproject commit 1c2b6170b9ec5443d4a3e211425bc0d5f8e18119
...@@ -46,7 +46,7 @@ object TcpFastOpen { ...@@ -46,7 +46,7 @@ object TcpFastOpen {
def sendEnabled: Boolean = { def sendEnabled: Boolean = {
val file = new File("/proc/sys/net/ipv4/tcp_fastopen") val file = new File("/proc/sys/net/ipv4/tcp_fastopen")
file.canRead && (Source.fromFile(file).mkString.toInt & 1) > 0 file.canRead && (Source.fromFile(file).mkString.trim.toInt & 1) > 0
} }
def enabled(value: Boolean): String = if (sendEnabled != value) { def enabled(value: Boolean): String = if (sendEnabled != value) {
......
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