Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 1b9c7cc

Browse files
committed
send bugfix
1 parent 3423ef0 commit 1b9c7cc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

client/client.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ def client_connects_to_server(sock, server_addr, port):
2929
def send(socket, message):
3030
socket.sendall(f"{message}\r\n".encode())
3131
print("MENSAJE ENVIADO, RECIBIENDO RESPUESTA")
32-
return response(socket)
32+
response = response(socket)
33+
return response
3334

3435
def default_login(socket):
3536
send(socket, f"USER anonymous")
@@ -647,8 +648,8 @@ def get_arg(flag):
647648
exit()
648649

649650
# Autenticación
650-
response = client_login(ftp_socket, user, password)
651-
print(response)
651+
Response = client_login(ftp_socket, user, password)
652+
print(Response)
652653
# if "230" not in response:
653654
# print("Error de autenticación")
654655
# exit()

0 commit comments

Comments
 (0)