File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -238,14 +238,14 @@ func getHTTPConfig(v *viper.Viper) (node.HTTPConfig, error) {
238
238
MetricsAPIEnabled : v .GetBool (MetricsAPIEnabledKey ),
239
239
HealthAPIEnabled : v .GetBool (HealthAPIEnabledKey ),
240
240
},
241
- HTTPHost : v .GetString (HTTPHostKey ),
242
- HTTPPort : uint16 (v .GetUint (HTTPPortKey )),
243
- HTTPSEnabled : v .GetBool (HTTPSEnabledKey ),
244
- HTTPSKey : httpsKey ,
245
- HTTPSCert : httpsCert ,
246
- APIAllowedOrigins : v .GetStringSlice (HTTPAllowedOrigins ),
247
- ShutdownTimeout : v .GetDuration (HTTPShutdownTimeoutKey ),
248
- ShutdownWait : v .GetDuration (HTTPShutdownWaitKey ),
241
+ HTTPHost : v .GetString (HTTPHostKey ),
242
+ HTTPPort : uint16 (v .GetUint (HTTPPortKey )),
243
+ HTTPSEnabled : v .GetBool (HTTPSEnabledKey ),
244
+ HTTPSKey : httpsKey ,
245
+ HTTPSCert : httpsCert ,
246
+ HTTPAllowedOrigins : v .GetStringSlice (HTTPAllowedOrigins ),
247
+ ShutdownTimeout : v .GetDuration (HTTPShutdownTimeoutKey ),
248
+ ShutdownWait : v .GetDuration (HTTPShutdownWaitKey ),
249
249
}
250
250
251
251
config .APIAuthConfig , err = getAPIAuthConfig (v )
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ type HTTPConfig struct {
53
53
HTTPSKey []byte `json:"-"`
54
54
HTTPSCert []byte `json:"-"`
55
55
56
- APIAllowedOrigins []string `json:"apiAllowedOrigins "`
56
+ HTTPAllowedOrigins []string `json:"httpAllowedOrigins "`
57
57
58
58
ShutdownTimeout time.Duration `json:"shutdownTimeout"`
59
59
ShutdownWait time.Duration `json:"shutdownWait"`
Original file line number Diff line number Diff line change @@ -588,7 +588,7 @@ func (n *Node) initAPIServer() error {
588
588
n .LogFactory ,
589
589
n .Config .HTTPHost ,
590
590
n .Config .HTTPPort ,
591
- n .Config .APIAllowedOrigins ,
591
+ n .Config .HTTPAllowedOrigins ,
592
592
n .Config .ShutdownTimeout ,
593
593
n .ID ,
594
594
n .Config .TraceConfig .Enabled ,
@@ -610,7 +610,7 @@ func (n *Node) initAPIServer() error {
610
610
n .LogFactory ,
611
611
n .Config .HTTPHost ,
612
612
n .Config .HTTPPort ,
613
- n .Config .APIAllowedOrigins ,
613
+ n .Config .HTTPAllowedOrigins ,
614
614
n .Config .ShutdownTimeout ,
615
615
n .ID ,
616
616
n .Config .TraceConfig .Enabled ,
You can’t perform that action at this time.
0 commit comments