wgengine/router: don't double-prefix dns log messages [Windows]

This commit is contained in:
Brad Fitzpatrick 2020-11-06 11:42:34 -08:00
parent bda53897b5
commit 119101962c
2 changed files with 3 additions and 2 deletions

View File

@ -63,7 +63,8 @@ func (lhs Config) Equal(rhs Config) bool {
// ManagerConfig is the set of parameters from which
// a manager implementation is chosen and initialized.
type ManagerConfig struct {
// logf is the logger for the manager to use.
// Logf is the logger for the manager to use.
// It is wrapped with a "dns: " prefix.
Logf logger.Logf
// InterfaceNAme is the name of the interface with which DNS settings should be associated.
InterfaceName string

View File

@ -39,7 +39,7 @@ func newUserspaceRouter(logf logger.Logf, wgdev *device.Device, tundev tun.Devic
nativeTun := tundev.(*tun.NativeTun)
guid := nativeTun.GUID().String()
mconfig := dns.ManagerConfig{
Logf: logger.WithPrefix(logf, "dns: "),
Logf: logf,
InterfaceName: guid,
}