Skip to content

Commit

Permalink
Read FQDNRejectResponseCode from config
Browse files Browse the repository at this point in the history
Currently dnsProxy.dnsRejectResponseCode helm value is ignored because FQDNRejectResponseCode is not populated from viper

Signed-off-by: Andrii Iuspin <yuspin@gmail.com>
  • Loading branch information
ayuspin authored and joestringer committed Aug 24, 2023
1 parent c976dd1 commit 8084fb1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/option/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3363,6 +3363,7 @@ func (c *DaemonConfig) Populate(vp *viper.Viper) {
c.DNSProxyConcurrencyProcessingGracePeriod = vp.GetDuration(DNSProxyConcurrencyProcessingGracePeriod)
c.DNSProxyLockCount = vp.GetInt(DNSProxyLockCount)
c.DNSProxyLockTimeout = vp.GetDuration(DNSProxyLockTimeout)
c.FQDNRejectResponse = vp.GetString(FQDNRejectResponseCode)

// Convert IP strings into net.IPNet types
subnets, invalid := ip.ParseCIDRs(vp.GetStringSlice(IPv4PodSubnets))
Expand Down

0 comments on commit 8084fb1

Please sign in to comment.