Skip to content

Commit b2f843e

Browse files
add back in comment
1 parent ae79ac5 commit b2f843e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,12 +1162,14 @@ export function checkParentDomainMatch(address: string, srvHost: string): void {
11621162
: `.${normalizedSrvHost.replace(allCharacterBeforeFirstDot, '')}`;
11631163

11641164
if (!addressDomain.endsWith(srvHostDomain)) {
1165+
// TODO(NODE-3484): Replace with MongoConnectionStringError
11651166
throw new MongoAPIError('Server record does not share hostname with parent URI');
11661167
}
11671168
if (
11681169
srvIsLessThanThreeParts &&
11691170
normalizedAddress.split('.').length <= normalizedSrvHost.split('.').length
11701171
) {
1172+
// TODO(NODE-3484): Replace with MongoConnectionStringError
11711173
throw new MongoAPIError('Server record does not have least one more domain than parent URI');
11721174
}
11731175
}

0 commit comments

Comments
 (0)