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

Commit

Permalink
Update proxy.go
Browse files Browse the repository at this point in the history
  • Loading branch information
liudf0716 authored Jul 4, 2017
1 parent a8e5c40 commit 2d4c120
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,8 @@ func JoinFtpControl(fc io.ReadWriteCloser, fs io.ReadWriteCloser, bp *BaseProxy,
port:= GetFtpPasvPort(msg)
if port != 0 {
// create data session
newPort := int(cfg.RemoteDataPort)
SetFtpDataProxyLocalServer(bp, cfg, localInfo, port)
newMsg := NewFtpPasv(newPort)
newMsg := NewFtpPasv(int(cfg.RemoteDataPort))
to.Write([]byte(newMsg))
n, err = to.Read(data)
if n <= 0 || err != nil {
Expand Down

0 comments on commit 2d4c120

Please sign in to comment.