giampaolo / pyftpdlib

Extremely fast and scalable Python FTP server library
MIT License
1.65k stars 266 forks source link

Update handlers.py #570

Closed nmweizi closed 2 years ago

nmweizi commented 2 years ago

masquerade_address_map add client IP support. masquerade_address_map = {'2.2.2.1':'2.2.2.1','4.4.4.1':'3.3.3.1'}

client-A -> nat device -> ftp server <- route <- client-B 1.1.1.1          2.2.2.1               3.3.3.1                              4.4.4.1

Signed-off-by: nmweizi nmweizi@gmail.com