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:
kageru 2018-02-06 18:09:03 +01:00
parent 6b00517c84
commit 47963ebf6c
Signed by: kageru
GPG Key ID: 8282A2BEA4ADA3D2

View File

@ -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)