forked from apache/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avoid unsafe split when validate hostname which might be ipv6 address (…
…apache#5713) ### Motivation Pulsar doesn't support deploy on IPv6 network environment. This PR just makes an effort to make it. The error happens if the client connect to brokers by IPv6 address, like fec0:0:0:ffff::1. - Wrong format: fec0:0:0:ffff::1:6650 - Correct format: [fec0:0:0:ffff::1]:6650 Cause the split regex is ':', brackets are needed and the ip:port can't split by ':' directly. ### Modifications validateHostName in ServiceURI
- Loading branch information
Showing
2 changed files
with
40 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters