Skip to content

Commit

Permalink
fix botched github gui edit!
Browse files Browse the repository at this point in the history
Co-authored-by: Brian Skinn <brian.skinn@gmail.com>
  • Loading branch information
totaam and bskinn committed Dec 20, 2023
1 parent 8544eb1 commit 0a36128
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paramiko/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def lookup(self, hostname):
if canon and hostname.count(".") <= maxdots:
# NOTE: OpenSSH manpage does not explicitly state this, but its
# implementation for CanonicalDomains is 'split on any whitespace'.
domains = options["canonicaldomains", ""].split()
domains = options.get("canonicaldomains", "").split()
hostname = self.canonicalize(hostname, options, domains)
# Overwrite HostName again here (this is also what OpenSSH does)
options["hostname"] = hostname
Expand Down

0 comments on commit 0a36128

Please sign in to comment.