aboutsummaryrefslogtreecommitdiffstats
path: root/tun/netstack/tun.go
diff options
context:
space:
mode:
Diffstat (limited to 'tun/netstack/tun.go')
-rw-r--r--tun/netstack/tun.go7
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