Skip to content

Commit faadaa0

Browse files
committed
fix ent
1 parent 426e638 commit faadaa0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

enterprise/cli/server.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ import (
2626
func server() *cobra.Command {
2727
vip := deployment.NewViper()
2828
cmd := agpl.Server(vip, func(ctx context.Context, options *agplcoderd.Options) (*agplcoderd.API, io.Closer, error) {
29-
if options.DeploymentConfig.DERPServerRelayURL.Value != "" {
30-
_, err := url.Parse(options.DeploymentConfig.DERPServerRelayURL.Value)
29+
if options.DeploymentConfig.DERP.Server.RelayURL.Value != "" {
30+
_, err := url.Parse(options.DeploymentConfig.DERP.Server.RelayURL.Value)
3131
if err != nil {
3232
return nil, nil, xerrors.Errorf("derp-server-relay-address must be a valid HTTP URL: %w", err)
3333
}
@@ -63,8 +63,8 @@ func server() *cobra.Command {
6363
SCIMAPIKey: []byte(options.DeploymentConfig.SCIMAPIKey.Value),
6464
UserWorkspaceQuota: options.DeploymentConfig.UserWorkspaceQuota.Value,
6565
RBAC: true,
66-
DERPServerRelayAddress: options.DeploymentConfig.DERPServerRelayURL.Value,
67-
DERPServerRegionID: options.DeploymentConfig.DERPServerRegionID.Value,
66+
DERPServerRelayAddress: options.DeploymentConfig.DERP.Server.RelayURL.Value,
67+
DERPServerRegionID: options.DeploymentConfig.DERP.Server.RegionID.Value,
6868

6969
Options: options,
7070
}

0 commit comments

Comments
 (0)