This repository was archived by the owner on Aug 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed
backend/internal/cmds/mgmt/serve/connect
worker/internal/cmds/worker/serve Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,7 @@ func serve(ctx context.Context) error {
153153 cascadelicense := license .NewCascadeLicense (
154154 ncloudlicense ,
155155 eelicense ,
156+ license .NewValidLicense (),
156157 )
157158
158159 mux := http .NewServeMux ()
Original file line number Diff line number Diff line change @@ -49,6 +49,21 @@ func (e *EELicense) ExpiresAt() time.Time {
4949 return e .contents .ExpiresAt
5050}
5151
52+ type ValidLicense struct {
53+ }
54+
55+ func (v * ValidLicense ) IsValid () bool {
56+ return true
57+ }
58+
59+ func (v * ValidLicense ) ExpiresAt () time.Time {
60+ return time .Now ().UTC ().Add (time .Hour * 24 * 365 * 10 )
61+ }
62+
63+ func NewValidLicense () * ValidLicense {
64+ return & ValidLicense {}
65+ }
66+
5267// Retrieves the EE license from the environment
5368// If not enabled, will still return valid struct.
5469// Errors if not able to properly parse a provided EE license from the environment
Original file line number Diff line number Diff line change @@ -328,6 +328,7 @@ func serve(ctx context.Context) error {
328328 cascadelicense := license .NewCascadeLicense (
329329 ncloudlicense ,
330330 eelicense ,
331+ license .NewValidLicense (),
331332 )
332333
333334 neosyncurl := shared .GetNeosyncUrl ()
You can’t perform that action at this time.
0 commit comments