fix file uploads
This commit is contained in:
jneilliii
2024-08-25 14:20:45 -04:00
parent cd4103cc71
commit 5754e81b72
2 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ class IoTFTPSConnection:
# But since we operate in prot p mode
# we can close the connection always.
# This is cursed but it works.
if "vsFTPd" in self.welcome:
if "vsFTPd" in self.ftps_session.welcome:
conn.unwrap()
else:
conn.shutdown(socket.SHUT_RDWR)