File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -29,3 +29,4 @@ allowed:
29
29
- govulncheck
30
30
- dataplaneapi
31
31
- quic
32
+ - userlist
Original file line number Diff line number Diff line change @@ -355,22 +355,19 @@ func copyConfigurationToStorage(cfg *Configuration) {
355
355
cfgStorage .Dataplaneapi .Advertised = & configTypeAdvertised {}
356
356
}
357
357
cfgStorage .Dataplaneapi .Advertised .APIAddress = & cfg .APIOptions .APIAddress
358
+ cfgStorage .Dataplaneapi .Advertised .APIPort = & cfg .APIOptions .APIPort
358
359
359
- if cfgStorage .Dataplaneapi == nil {
360
- cfgStorage .Dataplaneapi = & configTypeDataplaneapi {}
360
+ if cfgStorage .Dataplaneapi . Userlist == nil {
361
+ cfgStorage .Dataplaneapi . Userlist = & configTypeUserlist {}
361
362
}
362
- if cfgStorage .Dataplaneapi .Advertised == nil {
363
- cfgStorage .Dataplaneapi .Advertised = & configTypeAdvertised {}
364
- }
365
- cfgStorage .Dataplaneapi .Advertised .APIPort = & cfg .APIOptions .APIPort
366
- cfgStorage .Dataplaneapi .Advertised .APIPort = & cfg .APIOptions .APIPort
363
+ cfgStorage .Dataplaneapi .Userlist .Userlist = & cfg .HAProxy .Userlist
364
+ cfgStorage .Dataplaneapi .Userlist .UserListFile = & cfg .HAProxy .UserListFile
367
365
368
366
if cfgStorage .Haproxy == nil {
369
367
cfgStorage .Haproxy = & configTypeHaproxy {
370
368
Reload : & configTypeReload {},
371
369
}
372
370
}
373
-
374
371
cfgStorage .Haproxy .Reload .ReloadStrategy = & cfg .HAProxy .ReloadStrategy
375
372
376
373
if cfgStorage .LogTargets == nil {
You can’t perform that action at this time.
0 commit comments