Skip to content

Commit

Permalink
Merge pull request #708 from Native-Planet/startram-setup-key-cycle
Browse files Browse the repository at this point in the history
fix startram key not reseting before registration in setup
  • Loading branch information
nallux-dozryl authored Mar 8, 2024
2 parents 077c1f2 + c45762f commit 0a4d012
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions goseg/setup/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ func Setup(msg []byte, conn *structs.MuConn, token map[string]string) error {
return fmt.Errorf("Unable to set password: %v", err)
}
case "startram":
if err := config.CycleWgKey(); err != nil {
return fmt.Errorf("Failed to reset registration key: %v", err)
}
key := setupPayload.Payload.Key
region := setupPayload.Payload.Region
if err = startram.Register(key, region); err != nil {
Expand Down

0 comments on commit 0a4d012

Please sign in to comment.