]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
device: don't track device interface state in RoutineTUNEventReader
authorJosh Bleecher Snyder <josh@tailscale.com>
Thu, 21 Jan 2021 17:26:14 +0000 (09:26 -0800)
committerJosh Bleecher Snyder <josh@tailscale.com>
Mon, 8 Feb 2021 18:32:07 +0000 (10:32 -0800)
commitd840445e9bdd4f4db3538c9caf93d797cc987fbc
tree04e37a07845829a2e1bc4dd9c757c1505e8514e1
parent675ff32e6c29b4547e854c73b6aa6fdabe2cd0f5
device: don't track device interface state in RoutineTUNEventReader

We already track this state elsewhere. No need to duplicate.
The cost of calling changeState is negligible.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
device/tun.go