PDGGK commented on PR #21: URL: https://github.com/apache/iotdb-client-nodejs/pull/21#issuecomment-5067412276
Thanks @HTHou — you're right, `parseInt` accepting a numeric prefix let malformed endpoints slip through. Fixed: the port must now be an all-digits string (validated with `/^\d+$/`) before conversion, so `[::1]:6667junk` and `[::1]:6667:9999` — and the hostname/IPv4 equivalents — are rejected with the `Invalid nodeUrl format` error rather than parsed as `6667`. Added regression tests covering all four cases. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
