File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ require (
1111 github.com/nextmn/gopacket-gtp v0.0.7
1212 github.com/nextmn/gopacket-srv6 v0.0.8
1313 github.com/nextmn/json-api v0.0.7
14+ github.com/nextmn/logrus-formatter v0.0.1
1415 github.com/nextmn/rfc9433 v0.0.2
1516 github.com/sirupsen/logrus v1.9.3
1617 github.com/songgao/water v0.0.0-20200317203138-2b4b6d7c09d8
@@ -36,7 +37,6 @@ require (
3637 github.com/mattn/go-isatty v0.0.20 // indirect
3738 github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
3839 github.com/modern-go/reflect2 v1.0.2 // indirect
39- github.com/nextmn/logrus-formatter v0.0.1 // indirect
4040 github.com/pelletier/go-toml/v2 v2.2.3 // indirect
4141 github.com/russross/blackfriday/v2 v2.1.0 // indirect
4242 github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
Original file line number Diff line number Diff line change @@ -31,8 +31,11 @@ func NewTunIface(name string) *TunIface {
3131func (t * TunIface ) CreateAndUp () error {
3232 config := water.Config {
3333 DeviceType : water .TUN ,
34+ PlatformSpecificParams : water.PlatformSpecificParams {
35+ Name : t .name ,
36+ MultiQueue : true ,
37+ },
3438 }
35- config .Name = t .name
3639 iface , err := water .New (config )
3740 if err != nil {
3841 return fmt .Errorf ("Unable to allocate TUN interface: %s" , err )
You can’t perform that action at this time.
0 commit comments