Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

breaking,net.ftp: allow to choose a different port than port 21 (change FTP.connect to accept host:port, not just a host address) #21185

Merged
merged 2 commits into from
Apr 5, 2024

Conversation

4zv4l
Copy link
Contributor

@4zv4l 4zv4l commented Apr 4, 2024

ftp: allow to choose a different port than port 21 by simply removing the hardcoded port and using the same syntax for the address as for dial_tcp.

so instead of doing this

ftp.connect("127.0.0.1")

would do this

ftp.connect("127.0.0.1:2021")

this would allow to connect to ftp server using another port (for example due to security reason).

@spytheman spytheman changed the title ftp: allow to choose a different port than port 21 breaking,net.ftp: allow to choose a different port than port 21 (change FTP.connect to accept host:port, not just a host address) Apr 4, 2024
Copy link
Member

@spytheman spytheman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work.

@spytheman
Copy link
Member

The CI failures are not related.

@spytheman spytheman merged commit 38b3115 into vlang:master Apr 5, 2024
41 of 42 checks passed
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.

None yet

2 participants