Merge pull request 'LoadServers launches autolaunchers' (#36) from servers into trunk
continuous-integration/drone/push Build is passing Details

Reviewed-on: #36
This commit is contained in:
Sarah Jamie Lewis 2021-11-02 19:09:56 +00:00
commit baddf633b2
1 changed files with 3 additions and 0 deletions

3
lib.go
View File

@ -995,6 +995,9 @@ func LoadServers(password string) {
ev := event.NewEvent(servers.NewServer, make(map[event.Field]string))
serverInfo.EnrichEvent(&ev)
application.GetPrimaryBus().Publish(ev)
if serverInfo.Autostart {
LaunchServer(serverOnion)
}
}
}
}