Skip to content

Commit

Permalink
wgconf: fix creating warp identities when not using warp
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Pashmfouroush <[email protected]>
  • Loading branch information
markpash committed May 23, 2024
1 parent bb5871f commit 7beee3e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,11 @@ func main() {
opts.Endpoint = addrPort.String()
}

// create identities
if err := createPrimaryAndSecondaryIdentities(l.With("subsystem", "warp/account"), opts); err != nil {
fatal(l, err)
if opts.WireguardConfig != "" {
// create identities
if err := createPrimaryAndSecondaryIdentities(l.With("subsystem", "warp/account"), opts); err != nil {
fatal(l, err)
}
}

ctx, _ := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
Expand Down

0 comments on commit 7beee3e

Please sign in to comment.