Skip to content

Commit

Permalink
fix invalid license
Browse files Browse the repository at this point in the history
  • Loading branch information
uoosef committed Jan 31, 2024
1 parent 1894f1f commit 59b4d28
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,17 +169,21 @@ func findFreePort(network string) (string, error) {

func createPrimaryAndSecondaryIdentities(license string) {
// make primary identity
_license := license
if _license == "notset" {
_license = ""
}
warp.UpdatePath("./primary")
if !warp.CheckProfileExists(license) {
err := warp.LoadOrCreateIdentity(license)
err := warp.LoadOrCreateIdentity(_license)
if err != nil {
log.Fatalf("error: %v", err)
}
}
// make secondary
warp.UpdatePath("./secondary")
if !warp.CheckProfileExists(license) {
err := warp.LoadOrCreateIdentity(license)
err := warp.LoadOrCreateIdentity(_license)
if err != nil {
log.Fatalf("error: %v", err)
}
Expand Down

0 comments on commit 59b4d28

Please sign in to comment.