GoBackend: support NO_PI mode
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
f2113f80db
commit
19aec7c5c6
@ -45,6 +45,7 @@ func wgTurnOn(ifnameRef string, tun_fd int32, settings string) int32 {
|
|||||||
fd: os.NewFile(uintptr(tun_fd), ""),
|
fd: os.NewFile(uintptr(tun_fd), ""),
|
||||||
events: make(chan TUNEvent, 5),
|
events: make(chan TUNEvent, 5),
|
||||||
errors: make(chan error, 5),
|
errors: make(chan error, 5),
|
||||||
|
nopi: true,
|
||||||
}
|
}
|
||||||
device := NewDevice(tun, logger)
|
device := NewDevice(tun, logger)
|
||||||
device.tun.mtu = DefaultMTU //TODO: make dynamic
|
device.tun.mtu = DefaultMTU //TODO: make dynamic
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 09de7d1342a6d069ee888370a9bdcc289fadc73b
|
Subproject commit fd248c6cb1873229b5e487045accdf7ed7ac822e
|
Loading…
Reference in New Issue
Block a user