small change in variable name
parent
6264179e7c
commit
bd4f7c9af1
|
@ -49,7 +49,7 @@ def cli_parser():
|
|||
"--server", default=None, metavar='[http]',
|
||||
help="Create a server for the specified protocol.")
|
||||
servers.add_argument(
|
||||
"--port", default=None, metavar='[80]',
|
||||
"--server-port", default=None, metavar='[80]',
|
||||
help="Specify a non-standard port for the specified protocol.")
|
||||
servers.add_argument("--list-servers", default=False, action='store_true',
|
||||
help="Lists all supported server protocols.")
|
||||
|
|
|
@ -20,7 +20,7 @@ class Server:
|
|||
self.password = cli_object.password
|
||||
self.data_directory = ""
|
||||
if cli_object.port:
|
||||
self.port = int(cli_object.port)
|
||||
self.port = int(cli_object.server_port)
|
||||
else:
|
||||
self.port = 21
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ class Server:
|
|||
def __init__(self, cli_object):
|
||||
self.protocol = "http"
|
||||
if cli_object.port:
|
||||
self.port = int(cli_object.port)
|
||||
self.port = int(cli_object.server_port)
|
||||
else:
|
||||
self.port = 80
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ class Server:
|
|||
def __init__(self, cli_object):
|
||||
self.protocol = "https"
|
||||
if cli_object.port:
|
||||
self.port = int(cli_object.port)
|
||||
self.port = int(cli_object.server_port)
|
||||
else:
|
||||
self.port = 443
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ class Server:
|
|||
self.password = cli_object.password
|
||||
self.sftp_directory = helpers.ea_path() + '/data'
|
||||
if cli_object.port:
|
||||
self.port = int(cli_object.port)
|
||||
self.port = int(cli_object.server_port)
|
||||
else:
|
||||
self.port = 22
|
||||
self.rsa_key = """
|
||||
|
|
|
@ -19,7 +19,7 @@ class Server:
|
|||
|
||||
self.protocol = "smtp"
|
||||
if cli_object.port:
|
||||
self.port = int(cli_object.port)
|
||||
self.port = int(cli_object.server_port)
|
||||
else:
|
||||
self.port = 25
|
||||
|
||||
|
|
Loading…
Reference in New Issue