the port is now properly passed as an SFTP argument. you totally can’t tell I changed the config of my server or something
This commit is contained in:
parent
6b00517c84
commit
47963ebf6c
|
@ -73,7 +73,7 @@ def ftp_upload(sourcefile, *, mode=None, ext=None) -> tuple:
|
|||
else:
|
||||
ext = exts.get(mode, mode not in exts and sourcefile.split('.')[-1]) # Only do the split if necessary
|
||||
|
||||
with Connection(config.sftp_address, username=config.username, password=config.password,
|
||||
with Connection(config.sftp_address, username=config.username, password=config.password, port=config.sftp_port,
|
||||
private_key=config.private_key, private_key_pass=config.private_key_pass) as conn:
|
||||
conn.chdir(config.remote_directory)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user