Apply formatting fixes

Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
This commit is contained in:
Vasyl Gello 2023-11-27 15:53:13 +00:00
parent ad7ea39e31
commit 4069104169
2 changed files with 3 additions and 3 deletions

View file

@ -15,9 +15,9 @@ import (
"syscall" "syscall"
"github.com/gologme/log" "github.com/gologme/log"
"github.com/things-go/go-socks5"
gsyslog "github.com/hashicorp/go-syslog" gsyslog "github.com/hashicorp/go-syslog"
"github.com/hjson/hjson-go/v4" "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/address"
"github.com/yggdrasil-network/yggdrasil-go/src/admin" "github.com/yggdrasil-network/yggdrasil-go/src/admin"

View file

@ -102,12 +102,12 @@ func (e *YggdrasilNIC) WritePackets(
n, err := vv.Read(e.writeBuf) n, err := vv.Read(e.writeBuf)
if err != nil { if err != nil {
log.Println(err) log.Println(err)
return i-1, &tcpip.ErrAborted{} return i - 1, &tcpip.ErrAborted{}
} }
_, err = e.ipv6rwc.Write(e.writeBuf[:n]) _, err = e.ipv6rwc.Write(e.writeBuf[:n])
if err != nil { if err != nil {
log.Println(err) log.Println(err)
return i-1, &tcpip.ErrAborted{} return i - 1, &tcpip.ErrAborted{}
} }
} }