GoBackend: support NO_PI mode

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2018-02-28 12:42:09 +01:00
parent f2113f80db
commit 19aec7c5c6
2 changed files with 2 additions and 1 deletions

View File

@ -45,6 +45,7 @@ func wgTurnOn(ifnameRef string, tun_fd int32, settings string) int32 {
fd: os.NewFile(uintptr(tun_fd), ""),
events: make(chan TUNEvent, 5),
errors: make(chan error, 5),
nopi: true,
}
device := NewDevice(tun, logger)
device.tun.mtu = DefaultMTU //TODO: make dynamic

@ -1 +1 @@
Subproject commit 09de7d1342a6d069ee888370a9bdcc289fadc73b
Subproject commit fd248c6cb1873229b5e487045accdf7ed7ac822e