diff --git a/cmd/yggstack/main.go b/cmd/yggstack/main.go index 7fe8acb..6c48704 100644 --- a/cmd/yggstack/main.go +++ b/cmd/yggstack/main.go @@ -15,9 +15,9 @@ import ( "syscall" "github.com/gologme/log" - "github.com/things-go/go-socks5" gsyslog "github.com/hashicorp/go-syslog" "github.com/hjson/hjson-go/v4" + "github.com/things-go/go-socks5" "github.com/yggdrasil-network/yggdrasil-go/src/address" "github.com/yggdrasil-network/yggdrasil-go/src/admin" diff --git a/src/netstack/yggdrasil.go b/src/netstack/yggdrasil.go index 8e84cb2..3a582aa 100644 --- a/src/netstack/yggdrasil.go +++ b/src/netstack/yggdrasil.go @@ -102,12 +102,12 @@ func (e *YggdrasilNIC) WritePackets( n, err := vv.Read(e.writeBuf) if err != nil { log.Println(err) - return i-1, &tcpip.ErrAborted{} + return i - 1, &tcpip.ErrAborted{} } _, err = e.ipv6rwc.Write(e.writeBuf[:n]) if err != nil { log.Println(err) - return i-1, &tcpip.ErrAborted{} + return i - 1, &tcpip.ErrAborted{} } }