Skip to content

Commit

Permalink
Update start-up validation for LemonSqueezy
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Feb 2, 2025
1 parent 33495ab commit c151667
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,9 @@ func (c InletsProConfig) GetLicenseKey() (string, error) {
return strings.TrimSpace(val), nil
}

if dashes := strings.Count(val, "-"); dashes == 4 {
return strings.TrimSpace(val), nil
}

return "", fmt.Errorf("inlets license may be invalid")
}

0 comments on commit c151667

Please sign in to comment.