mise a jour

This commit is contained in:
Abdel Kader Chabi Sika Boni 2021-01-01 21:34:21 +01:00
parent 0914651849
commit 8f98489336

View file

@ -32,19 +32,19 @@ def retrieve_config():
def config_json_to_string(json_config):
config = ""
if "local_ip" in json_config:
config += "--local_ip "+json_config["local_ip"]
config += "--local_ip "+json_config["local_ip"]+" "
if "local_port" in json_config:
config += "--local_port "+str(json_config["local_port"])
config += "--local_port "+str(json_config["local_port"])+" "
if "local_name" in json_config:
config += "--local_name "+json_config["local_name"]
config += "--local_name "+json_config["local_name"]+" "
if "remote_ip" in json_config:
config += "--remote_ip "+json_config["remote_ip"]
config += "--remote_ip "+json_config["remote_ip"]+" "
if "remote_port" in json_config:
config += "--remote_port "+str(json_config["remote_port"])
config += "--remote_port "+str(json_config["remote_port"])+" "
if "remote_name" in json_config:
config += "--remote_name "+json_config["remote_name"]
config += "--remote_name "+json_config["remote_name"]+" "
if "send_period" in json_config:
config += "--send_period "+str(json_config["send_period"])
return config
config += "--send_period "+str(json_config["send_period"])+" "
return config.strip()
retrieve_config()