Skip to content

Commit 220e428

Browse files
committed
Save changes
1 parent 5ba39b3 commit 220e428

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

netty/src/main/java/io/grpc/netty/ProtocolNegotiators.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,9 @@ public ClientTlsProtocolNegotiator(SslContext sslContext,
582582
private final Optional<Runnable> handshakeCompleteRunnable;
583583
private final X509TrustManager x509ExtendedTrustManager;
584584
private final String sni;
585+
// For xds targets there may be no SNI determined, and no SNI may be sent in that case.
586+
// Non xds-targets will always use channel authority for SNI. This field is used to handle
587+
// the two cases differently.
585588
private final boolean isXdsTarget;
586589
private Executor executor;
587590

0 commit comments

Comments
 (0)