Skip to content

Commit bb1e304

Browse files
valentin benozillomcipperly
authored andcommitted
Fix how to check if the host is IPv6, work with domain name
PIP8 ok w to check if the host is IPv6, work with domain name�OC Signed-off-by: Matt Cipperly <[email protected]>
1 parent 0849a9b commit bb1e304

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fluent/sender.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def _reconnect(self):
210210
sock.settimeout(self.timeout)
211211
sock.connect(self.host[len('unix://'):])
212212
else:
213-
if self._host_is_ipv6():
213+
if self._is_ipv6_host():
214214
sock = socket.socket(socket.AF_INET6,
215215
socket.SOCK_STREAM)
216216
else:

0 commit comments

Comments
 (0)