We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 048e0c9 commit 7417088Copy full SHA for 7417088
splunklib/binding.py
@@ -466,7 +466,7 @@ def connect(self):
466
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
467
if self.scheme == "https":
468
sock = ssl.wrap_socket(sock)
469
- sock.connect((self.host, self.port))
+ sock.connect((socket.gethostbyname(self.host), self.port))
470
return sock
471
472
@_authentication
0 commit comments