mirror of https://git.48k.eu/ogcli/
parent
7478b9ce15
commit
7f09d148b4
|
@ -24,6 +24,11 @@ class OgServer():
|
|||
required=True,
|
||||
help='valid ogserver ip address')
|
||||
parsed_args = parser.parse_args(args)
|
||||
|
||||
if not check_address(parsed_args.address):
|
||||
print(f'Invalid IP address: {parsed_args.address}')
|
||||
return
|
||||
|
||||
payload = {'address': parsed_args.address}
|
||||
rest.post('/server', payload=payload)
|
||||
|
||||
|
|
Loading…
Reference in New Issue