Don't allow a server to have an empty name
This commit is contained in:
parent
7f52164647
commit
ac2b75df85
1 changed files with 2 additions and 0 deletions
|
@ -70,6 +70,8 @@ python3 {filename} --address=127.0.0.1 -l -p=7288"""
|
||||||
G.outboundLinks.append((arg[7:].split(":")[0], int(arg.split(":")[1])))
|
G.outboundLinks.append((arg[7:].split(":")[0], int(arg.split(":")[1])))
|
||||||
elif arg.startswith("--hostname"):
|
elif arg.startswith("--hostname"):
|
||||||
G.remoteID = arg[11:]
|
G.remoteID = arg[11:]
|
||||||
|
if not G.remoteID:
|
||||||
|
raise ValueError
|
||||||
elif arg.startswith("--address"):
|
elif arg.startswith("--address"):
|
||||||
address = arg[9:]
|
address = arg[9:]
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue