We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c8cd13a + 0d43f17 commit 636cd10Copy full SHA for 636cd10
1 file changed
juju/client/connection.py
@@ -694,7 +694,9 @@ def https_connection(self):
694
695
"""
696
endpoint = self.endpoint
697
- host, remainder = endpoint.split(':', 1)
+ # Support IPv6 by right splitting on : and removing [] around IP address for host
698
+ host, remainder = endpoint.rsplit(':', 1)
699
+ host = host.strip("[]")
700
port = remainder
701
if '/' in remainder:
702
port, _ = remainder.split('/', 1)
0 commit comments