Refine TFO

This commit is contained in:
Mygod
2016-08-27 23:39:06 +08:00
parent 04be60577a
commit 655ef1eed6
5 changed files with 8 additions and 16 deletions
@@ -112,12 +112,7 @@ class ShadowsocksApplication extends Application {
}
pending.setResultCallback(callback, 2, TimeUnit.SECONDS)
// TFO
val tfo = settings.getBoolean(Key.tfo, false)
if (tfo && !TcpFastOpen.isEnabled)
{
TcpFastOpen.enabled(true)
}
TcpFastOpen.enabled(settings.getBoolean(Key.tfo, false))
}
def refreshContainerHolder {