mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-05-02 14:46:05 -04:00
Updated readme and default config
This commit is contained in:
parent
8e558814eb
commit
c962f2c7a8
2 changed files with 46 additions and 7 deletions
|
@ -264,6 +264,10 @@ class Reticulum:
|
|||
def createDefaultConfig(self):
|
||||
self.config = ConfigObj()
|
||||
self.config.filename = Reticulum.configpath
|
||||
self.config["reticulum"] = {}
|
||||
self.config["reticulum"]["allow_unencrypted"] = False
|
||||
self.config["logging"] = {}
|
||||
self.config["logging"]["loglevel"] = 4
|
||||
self.config["interfaces"] = {}
|
||||
self.config["interfaces"]["Default UDP Interface"] = {}
|
||||
self.config["interfaces"]["Default UDP Interface"]["type"] = "UdpInterface"
|
||||
|
@ -271,7 +275,7 @@ class Reticulum:
|
|||
self.config["interfaces"]["Default UDP Interface"]["listen_port"] = 7777
|
||||
self.config["interfaces"]["Default UDP Interface"]["forward_ip"] = "255.255.255.255"
|
||||
self.config["interfaces"]["Default UDP Interface"]["forward_port"] = 7777
|
||||
self.config["interfaces"]["Default UDP Interface"]["use_as_outgoing"] = "true"
|
||||
self.config["interfaces"]["Default UDP Interface"]["outgoing"] = "true"
|
||||
if not os.path.isdir(Reticulum.configdir):
|
||||
os.makedirs(Reticulum.configdir)
|
||||
self.config.write()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue