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

How do I configure port/passive mode #407

Open
Aliuyanfeng opened this issue Dec 3, 2024 · 0 comments
Open

How do I configure port/passive mode #407

Aliuyanfeng opened this issue Dec 3, 2024 · 0 comments
Labels
defect The code does not work as intended

Comments

@Aliuyanfeng
Copy link

Describe the bug
I want to be able to configure the port and passive mode of ftp

To Reproduce

func (p *FTPPool) newConnection() (*ftp.ServerConn, error) {
	conn, err := ftp.Dial(p.host, ftp.DialWithTimeout(5*time.Second), ftp.DialWithForceListHidden(true))
	if err != nil {
		return nil, err
	}
	err = conn.Login(p.username, p.password)
	if err != nil {
		return nil, err
	}
	return conn, nil
}

FTP server

  • Name and version: vsftpd 3.0.2
@Aliuyanfeng Aliuyanfeng added the defect The code does not work as intended label Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect The code does not work as intended
Projects
None yet
Development

No branches or pull requests

1 participant