diff --git a/shadow/client.go b/shadow/client.go index 0b662c7..e4bb558 100644 --- a/shadow/client.go +++ b/shadow/client.go @@ -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()