Skip to content

Commit 7417088

Browse files
author
Sam Stelle
committed
Changed the socket binding to be more efficient on Windows.
1 parent 048e0c9 commit 7417088

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

splunklib/binding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ def connect(self):
466466
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
467467
if self.scheme == "https":
468468
sock = ssl.wrap_socket(sock)
469-
sock.connect((self.host, self.port))
469+
sock.connect((socket.gethostbyname(self.host), self.port))
470470
return sock
471471

472472
@_authentication

0 commit comments

Comments
 (0)