From 4069104169f3d686345acf8b34766c29a21a6d90 Mon Sep 17 00:00:00 2001 From: Vasyl Gello Date: Mon, 27 Nov 2023 15:53:13 +0000 Subject: [PATCH] Apply formatting fixes Signed-off-by: Vasyl Gello --- cmd/yggstack/main.go | 2 +- src/netstack/yggdrasil.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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{} } }