Skip to content

Commit

Permalink
fix startram key not reseting before registration in setup
Browse files Browse the repository at this point in the history
  • Loading branch information
nallux-dozryl committed Mar 8, 2024
1 parent 7fe1037 commit c45762f
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 c45762f

Please sign in to comment.