This commit is contained in:
wenyifan 2022-10-14 16:23:48 +08:00
parent 91ac6f7e17
commit ce9f312a77

View File

@ -60,10 +60,10 @@ func handlerClient(conn net.Conn, serverAddress string, fakeAddressSNI string) {
fmt.Printf("[Client] Handshake error: %v\n", err)
return
}
dial.NetConn().SetDeadline(time.Now())
dial.NetConn().SetDeadline(time.Time{})
dial.GetUnderlyingConn().SetDeadline(time.Now())
dial.GetUnderlyingConn().SetDeadline(time.Time{})
p := &PackAppData{Conn: dial.NetConn()}
p := &PackAppData{Conn: dial.GetUnderlyingConn()}
defer p.Close()
defer conn.Close()