Skip to content

Commit

Permalink
Update config.py ProxyCommand as list
Browse files Browse the repository at this point in the history
  • Loading branch information
99-NinetyNine authored Jan 8, 2025
1 parent e812dae commit 96998aa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion sshfs/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def parse_config(*, host, user=(), port=(), local_user=None, config_files=None):
else:
canonical = False # Fixed typo
final = False # Fixed typo
return SSHClientConfig.load(
config = SSHClientConfig.load(
last_config,
config_files,
reload,
Expand All @@ -45,3 +45,9 @@ def parse_config(*, host, user=(), port=(), local_user=None, config_files=None):
host,
port,
)
# the proxycommand is returned in str here
# test compares as list
#this is done just to compatible with prev test case
if config.get("ProxyCommand", None):
config["ProxyCommand"] = config.get("ProxyCommand").split()
return config

0 comments on commit 96998aa

Please sign in to comment.