mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-29 22:55:06 +03:00
1. added ckr init code
This commit is contained in:
parent
bd6538819d
commit
8395fbe6fe
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue