summaryrefslogtreecommitdiffhomepage
path: root/wgengine/userspace.go
diff options
context:
space:
mode:
Diffstat (limited to 'wgengine/userspace.go')
-rw-r--r--wgengine/userspace.go20
1 files changed, 0 insertions, 20 deletions
diff --git a/wgengine/userspace.go b/wgengine/userspace.go
index bb54c25ef..c7d93d0d3 100644
--- a/wgengine/userspace.go
+++ b/wgengine/userspace.go
@@ -651,26 +651,6 @@ func (e *userspaceEngine) LinkChange(isExpensive bool) {
e.magicConn.Rebind()
}
e.magicConn.ReSTUN(why)
- if !needRebind {
- return
- }
-
- e.wgLock.Lock()
- defer e.wgLock.Unlock()
-
- // TODO(crawshaw): use isExpensive=true to switch into "client mode" on macOS?
-
- // TODO(crawshaw): when we have an incremental notion of reconfig,
- // be gentler here. No need to smash in-progress connections,
- // we just need to handshake again.
- if e.lastReconfig == "" {
- return
- }
- uapi := e.lastReconfig[:strings.Index(e.lastReconfig, "\x00")]
- r := bufio.NewReader(strings.NewReader(uapi))
- if err := e.wgdev.IpcSetOperation(r); err != nil {
- e.logf("IpcSetOperation: %v\n", err)
- }
}
func getLinkState() (*interfaces.State, error) {