You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's a bit contrary when considering we have code logic to handle IPv6 addr with square brackets inside Connect()
try:
info = re.match(_rx, host)
if info is not None:
host = info.group(1)
if host[0] == '[':
host = info.group(1)[1:-1]
if info.group(2) is not None:
port = int(info.group(2)[1:])
except ValueError as ve:
pass
Reproduction steps
1. SmartConnect(host="[2001:0db8:85a3:0000:0000:8a2e:0370:7334]", user="xxx", pwd="xxx", port=443)
2. Exceptions was thrown out.
Expected behavior
Should be able to handle IPv6 address with square brackets
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
SmartConnect uses __FindSupportedVersion() to read the preferred API version from the host, however that method uses six.moves.http_client.HTTPSConnection(__FindSupportedVersion() -> __GetServiceVersionDescription() -> __GetElementTree()) which cannot handle IPv6 address with square brackets.
That's a bit contrary when considering we have code logic to handle IPv6 addr with square brackets inside Connect()
Reproduction steps
Expected behavior
Should be able to handle IPv6 address with square brackets
Additional context
No response
The text was updated successfully, but these errors were encountered: