mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 16:26:38 +00:00
remove development logs
This commit is contained in:
@@ -3,8 +3,6 @@ package dns
|
|||||||
import (
|
import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
log "github.com/sirupsen/logrus"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type iosHostManager struct {
|
type iosHostManager struct {
|
||||||
@@ -34,7 +32,6 @@ func (a iosHostManager) applyDNSConfig(config hostDNSConfig) error {
|
|||||||
domainConfig := strings.Join(domainConfigAsString, ";")
|
domainConfig := strings.Join(domainConfigAsString, ";")
|
||||||
configAsString = append(configAsString, domainConfig)
|
configAsString = append(configAsString, domainConfig)
|
||||||
outputString := strings.Join(configAsString, ",")
|
outputString := strings.Join(configAsString, ",")
|
||||||
log.Debug("applyDNSConfig: " + outputString)
|
|
||||||
a.dnsManager.ApplyDns(outputString)
|
a.dnsManager.ApplyDns(outputString)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ func newUpstreamResolver(parentCTX context.Context, interfaceName string, wgAddr
|
|||||||
log.Errorf("error while parsing CIDR: %s", err)
|
log.Errorf("error while parsing CIDR: %s", err)
|
||||||
}
|
}
|
||||||
index, err := getInterfaceIndex(interfaceName)
|
index, err := getInterfaceIndex(interfaceName)
|
||||||
log.Debugf("UpstreamResolver interface name: %s, index: %d, ip: %s", interfaceName, index, localIP)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Debugf("unable to get interface index for %s: %s", interfaceName, err)
|
log.Debugf("unable to get interface index for %s: %s", interfaceName, err)
|
||||||
}
|
}
|
||||||
@@ -120,7 +120,6 @@ func (u *upstreamResolver) ServeDNS(w dns.ResponseWriter, r *dns.Msg) {
|
|||||||
}
|
}
|
||||||
upstreamIP := net.ParseIP(upstreamHost)
|
upstreamIP := net.ParseIP(upstreamHost)
|
||||||
if u.lNet.Contains(upstreamIP) || net.IP.IsPrivate(upstreamIP) {
|
if u.lNet.Contains(upstreamIP) || net.IP.IsPrivate(upstreamIP) {
|
||||||
log.Debugf("using private client to query upstream: %s", upstream)
|
|
||||||
upstreamExchangeClient = u.getClientPrivate()
|
upstreamExchangeClient = u.getClientPrivate()
|
||||||
}
|
}
|
||||||
rm, t, exchangeErr = upstreamExchangeClient.Exchange(r, upstream)
|
rm, t, exchangeErr = upstreamExchangeClient.Exchange(r, upstream)
|
||||||
|
|||||||
Reference in New Issue
Block a user