Don't bind ftpserver on detected ip address, bind it to 127.0.0.1 or the provided config value.

bzr revid: al@openerp.com-20100622122030-56azfsum3gjjgvp8
This commit is contained in:
Antony Lesuisse 2010-06-22 14:20:30 +02:00
parent 0763d0d588
commit f386869927
1 changed files with 1 additions and 6 deletions

View File

@ -25,13 +25,8 @@ import authorizer
import abstracted_fs
import netsvc
from tools import config
from tools.misc import detect_ip_addr
if detect_ip_addr:
HOST = config.get('ftp_server_host', detect_ip_addr())
else:
HOST = config.get('ftp_server_host', '127.0.0.1')
HOST = config.get('ftp_server_host', '127.0.0.1')
PORT = int(config.get('ftp_server_port', '8021'))
PASSIVE_PORTS = None
pps = config.get('ftp_server_passive_ports', '').split(':')