Merge branch 'develop' into secure_address_generation

This commit is contained in:
Neil 2024-10-17 13:26:10 +01:00 committed by GitHub
commit 5b77793ba6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 470 additions and 134 deletions

View file

@ -53,6 +53,7 @@ func main() {
getsnet := flag.Bool("subnet", false, "use in combination with either -useconf or -useconffile, outputs your IPv6 subnet")
getpkey := flag.Bool("publickey", false, "use in combination with either -useconf or -useconffile, outputs your public key")
loglevel := flag.String("loglevel", "info", "loglevel to enable")
chuserto := flag.String("user", "", "user (and, optionally, group) to set UID/GID to")
flag.Parse()
done := make(chan struct{})
@ -286,6 +287,14 @@ func main() {
<-done
})
// Change user if requested
if *chuserto != "" {
err = chuser(*chuserto)
if err != nil {
panic(err)
}
}
// Block until we are told to shut down.
<-ctx.Done()