Skip to content

Commit 984a68b

Browse files
fix: support ipv6
1 parent f41a1d6 commit 984a68b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

influxdb_client_3/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def __init__(
208208
"""
209209
Initialize an InfluxDB client.
210210
211-
:param host: The hostname or IP address of the InfluxDB server.
211+
:param host: The hostname or IP address of the InfluxDB server. IPv6 must be wrapped inside square brackets, e.g. http://[2001:db8::1]:8086, and Zone IDs are not supported.
212212
:type host: str
213213
:param org: The InfluxDB organization name for operations.
214214
:type org: str

influxdb_client_3/query/query_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def __init__(self,
156156
"""
157157
Initialize defaults.
158158
159-
:param connection_string: Flight/gRPC connection string
159+
:param connection_string: Flight/gRPC connection string. IPv6 must be wrapped inside square brackets, e.g. 'grpc+tcp://[2001:db8::1]:8086', and Zone IDs are not supported.
160160
:param token: access token
161161
:param flight_client_options: Flight client options
162162
"""

0 commit comments

Comments
 (0)