Skip to content

Commit c151667

Browse files
committed
Update start-up validation for LemonSqueezy
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 33495ab commit c151667

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

config.go

+4
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,9 @@ func (c InletsProConfig) GetLicenseKey() (string, error) {
5858
return strings.TrimSpace(val), nil
5959
}
6060

61+
if dashes := strings.Count(val, "-"); dashes == 4 {
62+
return strings.TrimSpace(val), nil
63+
}
64+
6165
return "", fmt.Errorf("inlets license may be invalid")
6266
}

0 commit comments

Comments
 (0)