Minor fixes

This commit is contained in:
世界 committed 2022-09-11 22:44:35 +08:00
1 parent ebf5cbf1b9
commit 7e09beb0c3
3 files changed
+11 -7

No files matched your search

+5 -1
View File
@@ -60,7 +60,11 @@ func (s *ShadowTLS) DialContext(ctx context.Context, network string, destination
if err != nil {
return nil, err
}
return tls.ClientHandshake(ctx, conn, s.tlsConfig)
_, err = tls.ClientHandshake(ctx, conn, s.tlsConfig)
if err != nil {
return nil, err
}
return conn, nil
}
func (s *ShadowTLS) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error) {