Skip to content

Commit aadaa15

Browse files
juangjAutomatedTester
authored andcommitted
Set hostname correctly when keep_alive=True and resolve_ip=False.
1 parent af28d14 commit aadaa15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/selenium/webdriver/remote/remote_connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def __init__(self, remote_server_addr, keep_alive=False, resolve_ip=True):
166166
# Attempt to resolve the hostname and get an IP address.
167167
self.keep_alive = keep_alive
168168
parsed_url = parse.urlparse(remote_server_addr)
169-
addr = ""
169+
addr = parsed_url.hostname
170170
if parsed_url.hostname and resolve_ip:
171171
port = parsed_url.port or None
172172
ip = common_utils.find_connectable_ip(parsed_url.hostname,

0 commit comments

Comments
 (0)