1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-06 09:15:37 -05:00

allow multiple UDP incoming packets in freedom

This commit is contained in:
Darien Raymond
2016-02-01 11:38:38 +00:00
parent d3ff2b3698
commit 3b1f92b7e8
2 changed files with 7 additions and 13 deletions

View File

@@ -16,7 +16,7 @@ type TimeOutReader struct {
worker io.Reader
}
func NewTimeOutReader(timeout int, connection net.Conn) *TimeOutReader {
func NewTimeOutReader(timeout int /* seconds */, connection net.Conn) *TimeOutReader {
reader := &TimeOutReader{
connection: connection,
timeout: -100,