From: Brian Warner Date: Thu, 6 Nov 2008 02:34:42 +0000 (-0700) Subject: client.py: oops, update FTP/SFTP config names to match current docs X-Git-Url: https://git.rkrishnan.org/%5B/index.php?a=commitdiff_plain;h=926f3958a2274836f585576ec564739219039b1e;p=tahoe-lafs%2Ftahoe-lafs.git client.py: oops, update FTP/SFTP config names to match current docs --- diff --git a/src/allmydata/client.py b/src/allmydata/client.py index 1574615f..5f048bfa 100644 --- a/src/allmydata/client.py +++ b/src/allmydata/client.py @@ -263,9 +263,9 @@ class Client(node.Node, pollmixin.PollMixin): def init_ftp_server(self): if self.get_config("ftpd", "enabled", False, boolean=True): - accountfile = self.get_config("ftpd", "ftp.accounts.file", None) - accounturl = self.get_config("ftpd", "ftp.accounts.url", None) - ftp_portstr = self.get_config("ftpd", "ftp.port", "8021") + accountfile = self.get_config("ftpd", "accounts.file", None) + accounturl = self.get_config("ftpd", "accounts.url", None) + ftp_portstr = self.get_config("ftpd", "port", "8021") from allmydata.frontends import ftpd s = ftpd.FTPServer(self, accountfile, accounturl, ftp_portstr) @@ -273,11 +273,11 @@ class Client(node.Node, pollmixin.PollMixin): def init_sftp_server(self): if self.get_config("sftpd", "enabled", False, boolean=True): - accountfile = self.get_config("sftpd", "sftp.accounts.file", None) - accounturl = self.get_config("sftpd", "sftp.accounts.url", None) - sftp_portstr = self.get_config("sftpd", "sftp.port", "8022") - pubkey_file = self.get_config("sftpd", "sftp.host_pubkey_file") - privkey_file = self.get_config("sftpd", "sftp.host_privkey_file") + accountfile = self.get_config("sftpd", "accounts.file", None) + accounturl = self.get_config("sftpd", "accounts.url", None) + sftp_portstr = self.get_config("sftpd", "port", "8022") + pubkey_file = self.get_config("sftpd", "host_pubkey_file") + privkey_file = self.get_config("sftpd", "host_privkey_file") from allmydata.frontends import sftpd s = sftpd.SFTPServer(self, accountfile, accounturl,