File tree 1 file changed +6
-5
lines changed
gax-java/gax/src/main/java/com/google/api/gax/rpc
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -272,11 +272,6 @@ private String determineUniverseDomain() {
272
272
273
273
/** Determines the fully resolved endpoint and universe domain values */
274
274
private String determineEndpoint () throws IOException {
275
- // Check if Experimental S2A feature enabled. When feature is non-experimental, remove this
276
- // check from this function, and plumb MTLS endpoint to channel creation logic separately.
277
- if (shouldUseS2A ()) {
278
- return mtlsEndpoint ();
279
- }
280
275
MtlsProvider mtlsProvider = mtlsProvider () == null ? new MtlsProvider () : mtlsProvider ();
281
276
// TransportChannelProvider's endpoint will override the ClientSettings' endpoint
282
277
String customEndpoint =
@@ -307,6 +302,12 @@ private String determineEndpoint() throws IOException {
307
302
throw new IllegalArgumentException (
308
303
"mTLS is not supported in any universe other than googleapis.com" );
309
304
}
305
+
306
+ // Check if Experimental S2A feature enabled. When feature is non-experimental, remove this
307
+ // check from this function, and plumb MTLS endpoint to channel creation logic separately.
308
+ if (shouldUseS2A ()) {
309
+ return mtlsEndpoint ();
310
+ }
310
311
return endpoint ;
311
312
}
312
313
You can’t perform that action at this time.
0 commit comments