Skip to content

Commit

Permalink
Set hostname correctly when keep_alive=True and resolve_ip=False.
Browse files Browse the repository at this point in the history
  • Loading branch information
juangj committed Apr 13, 2016
1 parent 5d1741b commit c6f7cd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/remote/remote_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def __init__(self, remote_server_addr, keep_alive=False, resolve_ip=True):
# Attempt to resolve the hostname and get an IP address.
self.keep_alive = keep_alive
parsed_url = parse.urlparse(remote_server_addr)
addr = ""
addr = parsed_url.hostname
if parsed_url.hostname and resolve_ip:
port = parsed_url.port or None
ip = common_utils.find_connectable_ip(parsed_url.hostname,
Expand Down

0 comments on commit c6f7cd5

Please sign in to comment.