mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-08 19:34:18 +00:00
create-node: reject --listen=tcp without --hostname=
This commit is contained in:
parent
9a1a186197
commit
38ebdfac20
@ -34,6 +34,8 @@ def validate_where_options(options):
|
||||
raise usage.UsageError("The --port option must be used with the --location option.")
|
||||
if (options['listen'] != "tcp") and options['hostname']:
|
||||
raise usage.UsageError("The listener type must be TCP to use --hostname option.")
|
||||
if options['listen'] == "tcp" and not options['hostname']:
|
||||
raise usage.UsageError("--listen=tcp requires --hostname=")
|
||||
if options['listen'] not in ["tcp", "tor", "i2p"]:
|
||||
raise usage.UsageError("The listener type must set to one of: tcp, tor, i2p.")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user