Ticket #4256: ftp.patch

File ftp.patch, 521 bytes (added by alepra1, 5 years ago)
  • ftp.py

    old new  
    868868 
    869869        self.dtpFactory = DTPFactory(pi=self, peerHost=self.transport.getPeer().host) 
    870870        self.dtpFactory.setTimeout(self.dtpTimeout) 
    871         self.dtpPort = reactor.connectTCP(ip, port, self.dtpFactory) 
     871        self.dtpPort = reactor.connectTCP(ip, port, self.dtpFactory,bindAddress=(self.transport.getHost().host,0)) 
    872872 
    873873        def connected(ignored): 
    874874            return ENTERING_PORT_MODE