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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user