From 487c520109be97fc9b82d75dd1a8293eeed026a1 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 1 Mar 2021 20:20:25 -0800 Subject: [PATCH] wgengine: fix bug from earlier commit Commit e3df29d488f5ce50ee39 introduced this bug where the interfaces-were-changed-or-not bit got lost. Signed-off-by: Brad Fitzpatrick --- wgengine/userspace.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgengine/userspace.go b/wgengine/userspace.go index 076eefa70..d61b9645d 100644 --- a/wgengine/userspace.go +++ b/wgengine/userspace.go @@ -250,7 +250,7 @@ func newUserspaceEngine(logf logger.Logf, rawTUNDev tun.Device, conf Config) (_ unregisterMonWatch := e.linkMon.RegisterChangeCallback(func(changed bool, st *interfaces.State) { tshttpproxy.InvalidateCache() - e.linkChange(false, st) + e.linkChange(changed, st) }) closePool.addFunc(unregisterMonWatch) e.linkMonUnregister = unregisterMonWatch