This repository was archived by the owner on Mar 26, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -515,20 +515,20 @@ export class Bigtable {
515515 this . customEndpoint = customEndpoint ;
516516
517517 let customEndpointBaseUrl : string | undefined ;
518- let customEndpointPort = 443 ;
518+ let customEndpointPort : number | undefined ;
519519 let sslCreds : gaxVendoredGrpc . ChannelCredentials | undefined ;
520520
521521 if ( customEndpoint ) {
522522 const customEndpointParts = customEndpoint . split ( ':' ) ;
523523 customEndpointBaseUrl = customEndpointParts [ 0 ] ;
524- customEndpointPort = Number ( customEndpointParts [ 1 ] ) || 443 ;
524+ customEndpointPort = Number ( customEndpointParts [ 1 ] ) ;
525525 sslCreds = grpc . credentials . createInsecure ( ) ;
526526 }
527527
528528 const baseOptions = Object . assign ( {
529529 libName : 'gccl' ,
530530 libVersion : PKG . version ,
531- port : customEndpointPort ,
531+ port : customEndpointPort || 443 ,
532532 sslCreds,
533533 scopes,
534534 'grpc.keepalive_time_ms' : 30000 ,
You can’t perform that action at this time.
0 commit comments