From 8395fbe6fe71b4956be2a573a738a18d325d1faa Mon Sep 17 00:00:00 2001 From: vadym Date: Sat, 10 Jul 2021 18:54:31 +0300 Subject: [PATCH] 1. added ckr init code --- src/tuntap/tun.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tuntap/tun.go b/src/tuntap/tun.go index dbba018b..8cbe537b 100644 --- a/src/tuntap/tun.go +++ b/src/tuntap/tun.go @@ -37,6 +37,7 @@ type TunAdapter struct { log *log.Logger addr address.Address subnet address.Subnet + ckr cryptokey mtu uint64 iface tun.Device phony.Inbox // Currently only used for _handlePacket from the reader, TODO: all the stuff that currently needs a mutex below @@ -141,6 +142,7 @@ func (tun *TunAdapter) _start() error { } tun.core.SetMTU(tun.MTU()) tun.isOpen = true + tun.ckr.init(tun) tun.isEnabled = true go tun.read() go tun.write()