1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-04-18 03:29:12 -04:00

Enable UDP in Socks proxy

This commit is contained in:
V2Ray
2015-10-04 00:21:06 +02:00
parent ddad439614
commit 838cb8950a
3 changed files with 54 additions and 3 deletions

View File

@@ -28,3 +28,11 @@ func (reader *TimeOutReader) Read(p []byte) (n int, err error) {
reader.connection.SetReadDeadline(emptyTime)
return
}
func (reader *TimeOutReader) GetTimeOut() int {
return reader.timeout
}
func (reader *TimeOutReader) SetTimeOut(value int) {
reader.timeout = value
}