forked from p15670423/monkey
Merge pull request #132 from cclauss/patch-2
ftp.py: Undefined name local_ip --> self.local_ip
This commit is contained in:
commit
4d7cff9fdb
|
@ -83,7 +83,7 @@ class FTPServer(threading.Thread):
|
||||||
def PASV(self,cmd):
|
def PASV(self,cmd):
|
||||||
self.pasv_mode = True
|
self.pasv_mode = True
|
||||||
self.servsock = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
|
self.servsock = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
|
||||||
self.servsock.bind((local_ip,0))
|
self.servsock.bind((self.local_ip,0))
|
||||||
self.servsock.listen(1)
|
self.servsock.listen(1)
|
||||||
ip, port = self.servsock.getsockname()
|
ip, port = self.servsock.getsockname()
|
||||||
self.conn.send('227 Entering Passive Mode (%s,%u,%u).\r\n' %
|
self.conn.send('227 Entering Passive Mode (%s,%u,%u).\r\n' %
|
||||||
|
|
Loading…
Reference in New Issue