We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3acf245 commit 785aec4Copy full SHA for 785aec4
src/v1/internal/routing-util.js
@@ -61,7 +61,8 @@ export default class RoutingUtil {
61
parseTtl(record, routerAddress) {
62
try {
63
const now = int(Date.now());
64
- const expires = record.get('ttl').multiply(1000).add(now);
+ const ttl = record.get('ttl');
65
+ const expires = (typeof ttl === 'number' ? int(ttl) : ttl).multiply(1000).add(now);
66
// if the server uses a really big expire time like Long.MAX_VALUE this may have overflowed
67
if (expires.lessThan(now)) {
68
return Integer.MAX_VALUE;
0 commit comments