You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider when A FTP Server is on Linux LVS, which means the VIP(Virtual IP) != RealIP.
func (ftp *FTP) Pasv() (port int, err error) only return a port, and func (ftp *FTP) newConnection(port int) (conn net.Conn, err error) will combine the VIP of LVS and returned Port instead of RealIP and Port.
I suggest use func (ftp *FTP) Pasv() (host string, port int, err error) and func (ftp *FTP) newConnection(host string, port int) (conn net.Conn, err error)
If you want it , I will push a request pull.
The text was updated successfully, but these errors were encountered:
mohanson
changed the title
When the FTP server is deployed on the LVS, goftp Can't make a data connection.
When the FTP server is deployed on the LVS, goftp can't make a data connection.
Nov 21, 2016
Consider when A FTP Server is on Linux LVS, which means the VIP(Virtual IP) != RealIP.
func (ftp *FTP) Pasv() (port int, err error)
only return a port, andfunc (ftp *FTP) newConnection(port int) (conn net.Conn, err error)
will combine theVIP
of LVS and returnedPort
instead ofRealIP
andPort
.I suggest use
func (ftp *FTP) Pasv() (host string, port int, err error)
andfunc (ftp *FTP) newConnection(host string, port int) (conn net.Conn, err error)
If you want it , I will push a request pull.
The text was updated successfully, but these errors were encountered: