server update

This commit is contained in:
0xdcarns
2022-01-25 23:04:03 -05:00
parent 26a0d8bdbe
commit 0d3813295d
5 changed files with 18 additions and 11 deletions

View File

@@ -161,6 +161,7 @@ func JoinNetwork(cfg config.ClientConfig, privateKey string) error {
if err = json.Unmarshal([]byte(nodeData), &node); err != nil {
return err
}
log.Printf("%v \n", nodeData)
}
// get free port based on returned default listen port
@@ -183,6 +184,7 @@ func JoinNetwork(cfg config.ClientConfig, privateKey string) error {
}
if node.IsServer != "yes" { // == handle client side ==
cfg.Node = node
err = config.ModConfig(&node)
if err != nil {
return err