Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public static OkHttpChannelBuilder forTarget(String target, ChannelCredentials c
*/
private final boolean useGetForSafeMethods = false;

private static ConnectionSpec initialConnectionSpec() {
static ConnectionSpec initialConnectionSpec() {
return (OkHttpProtocolNegotiator.get() instanceof OkHttpProtocolNegotiator.AndroidNegotiator)
? INTERNAL_DEFAULT_CONNECTION_SPEC
: INTERNAL_LEGACY_CONNECTION_SPEC;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static final class ServerCredentials extends io.grpc.ServerCredentials {
private final ConnectionSpec connectionSpec;

ServerCredentials(SSLSocketFactory factory) {
this(factory, OkHttpChannelBuilder.INTERNAL_LEGACY_CONNECTION_SPEC);
this(factory, OkHttpChannelBuilder.initialConnectionSpec());
}

ServerCredentials(SSLSocketFactory factory, ConnectionSpec connectionSpec) {
Expand Down
Loading