mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-13 00:58:06 +02:00
core/config: disable gRPC ingress when address is the empty string (#5058)
* core/config: disable gRPC ingress when address is the empty string * add test * typo
This commit is contained in:
parent
5f800300a4
commit
322e11e60d
3 changed files with 50 additions and 9 deletions
|
@ -272,15 +272,8 @@ func (src *ConfigSource) runUpdater(cfg *config.Config) {
|
|||
}, databroker.WithTypeURL(grpcutil.GetTypeURL(new(configpb.Config))),
|
||||
databroker.WithFastForward())
|
||||
go func() {
|
||||
var databrokerURLs []string
|
||||
urls, _ := cfg.Options.GetDataBrokerURLs()
|
||||
for _, url := range urls {
|
||||
databrokerURLs = append(databrokerURLs, url.String())
|
||||
}
|
||||
|
||||
log.Debug(ctx).
|
||||
Str("outbound_port", cfg.OutboundPort).
|
||||
Strs("databroker_urls", databrokerURLs).
|
||||
Msg("config: starting databroker config source syncer")
|
||||
_ = grpc.WaitForReady(ctx, cc, time.Second*10)
|
||||
_ = syncer.Run(ctx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue