mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 08:47:35 +08:00
changing broker retrieval/setting logic
This commit is contained in:
@@ -190,6 +190,9 @@ func JoinNetwork(cfg *config.ClientConfig, privateKey string) error {
|
||||
if err := Register(cfg, privateKey); err != nil {
|
||||
return err
|
||||
}
|
||||
if cfg.Server.Server == "" {
|
||||
return errors.New("did not recieve broker address from registration")
|
||||
}
|
||||
|
||||
_ = UpdateLocalListenPort(cfg)
|
||||
|
||||
|
Reference in New Issue
Block a user