Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit a68d39c

Browse files
committed
chore: fully restore the port logic
1 parent c0ea5da commit a68d39c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)