We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4c302e commit b9ee2d1Copy full SHA for b9ee2d1
1 file changed
juju/client/connection.py
@@ -678,7 +678,9 @@ def https_connection(self):
678
679
"""
680
endpoint = self.endpoint
681
- host, remainder = endpoint.split(':', 1)
+ # Support IPv6 by right splitting on : and removing [] around IP address for host
682
+ host, remainder = endpoint.rsplit(':', 1)
683
+ host = host.strip("[]")
684
port = remainder
685
if '/' in remainder:
686
port, _ = remainder.split('/', 1)
0 commit comments