diff options
author | 2021-12-09 17:55:50 +0100 | |
---|---|---|
committer | 2021-12-09 23:15:55 +0100 | |
commit | 9c9e7e2724340280d0ca4ff29c067f2d144562c0 (patch) | |
tree | 239826ccafe70e5cee73936d9bcea8989dd33899 /tun/netstack/tun.go | |
parent | device: handle peer post config on blank line (diff) | |
download | wireguard-go-9c9e7e2724340280d0ca4ff29c067f2d144562c0.tar.xz wireguard-go-9c9e7e2724340280d0ca4ff29c067f2d144562c0.zip |
global: apply gofumpt
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tun/netstack/tun.go')
-rw-r--r-- | tun/netstack/tun.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tun/netstack/tun.go b/tun/netstack/tun.go index f1c03f4..fb7f07d 100644 --- a/tun/netstack/tun.go +++ b/tun/netstack/tun.go @@ -42,8 +42,11 @@ type netTun struct { dnsServers []netip.Addr hasV4, hasV6 bool } -type endpoint netTun -type Net netTun + +type ( + endpoint netTun + Net netTun +) func (e *endpoint) Attach(dispatcher stack.NetworkDispatcher) { e.dispatcher = dispatcher |