Skip to content

Make it possible to resolve IPv6 host, add some more informative logging#29

Open
t-nel-95 wants to merge 1 commit intokowalpy:masterfrom
t-nel-95:feature/IPv6_connect
Open

Make it possible to resolve IPv6 host, add some more informative logging#29
t-nel-95 wants to merge 1 commit intokowalpy:masterfrom
t-nel-95:feature/IPv6_connect

Conversation

@t-nel-95
Copy link
Copy Markdown

@t-nel-95 t-nel-95 commented Oct 3, 2025

As per the title.

Notes:

If host is a hostname and not a literal address, it will try to resolve IPv6 first.
If you want to avoid this, and explicitly use IPv4, simply resolve the hostname beforehand and pass a literal IPv4 address instead.

# Use resolved address but let FTP.connect() handle the socket
outputMsg += newFtp.connect(host, port, timeout)
self.__addNewConnection(newFtp, connId)
outputMsg += newFtp.login(user, password)

This was done to allow the socket to work on both python 3.12+ and python 3.13.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants