mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-30 23:25:36 +03:00
cleaned up develop branch
This commit is contained in:
parent
2d36105eeb
commit
976bd70c96
14 changed files with 96 additions and 96 deletions
|
@ -28,7 +28,7 @@ import (
|
|||
type MTU uint16
|
||||
|
||||
// TunAdapter represents a running TUN interface and extends the
|
||||
// mesh.Adapter type. In order to use the TUN adapter with Yggdrasil, you
|
||||
// mesh.Adapter type. In order to use the TUN adapter with Mesh, you
|
||||
// should pass this object to the mesh.SetRouterAdapter() function before
|
||||
// calling mesh.Start().
|
||||
type TunAdapter struct {
|
||||
|
@ -92,7 +92,7 @@ func MaximumMTU() uint64 {
|
|||
}
|
||||
|
||||
// Init initialises the TUN module. You must have acquired a Listener from
|
||||
// the Yggdrasil core before this point and it must not be in use elsewhere.
|
||||
// the Mesh core before this point and it must not be in use elsewhere.
|
||||
func (tun *TunAdapter) Init(rwc *ipv6rwc.ReadWriteCloser, config *config.NodeConfig, log *log.Logger, options interface{}) error {
|
||||
tun.rwc = rwc
|
||||
tun.config = config
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue