We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b37096 commit 6fe2b45Copy full SHA for 6fe2b45
1 file changed
common/uot/server.go
@@ -4,6 +4,7 @@ import (
4
"encoding/binary"
5
"io"
6
"net"
7
+ "time"
8
9
"github.com/sagernet/sing/common"
10
"github.com/sagernet/sing/common/buf"
@@ -89,6 +90,7 @@ func (c *ServerConn) loopInput() {
89
90
if err != nil {
91
break
92
}
93
+ c.SetDeadline(time.Now().Add(2 * time.Minute))
94
95
c.Close()
96
@@ -105,6 +107,7 @@ func (c *ServerConn) loopOutput() {
105
107
106
108
109
110
111
if !c.isConnect {
112
err = AddrParser.WriteAddrPort(c.outputWriter, M.SocksaddrFromNet(addr))
113
0 commit comments