Reformat code

This commit is contained in:
世界 2025-09-15 18:12:47 +08:00
parent 558e1e0493
commit d79d3c88fd
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
8 changed files with 11 additions and 22 deletions

View file

@ -12,12 +12,11 @@ import (
"sync"
"time"
"github.com/sagernet/wireguard-go/conn"
"github.com/sagernet/wireguard-go/tai64n"
"golang.org/x/crypto/blake2s"
"golang.org/x/crypto/chacha20poly1305"
"golang.org/x/crypto/poly1305"
"github.com/sagernet/wireguard-go/conn"
"github.com/sagernet/wireguard-go/tai64n"
)
type handshakeState int

View file

@ -411,7 +411,6 @@ func (device *Device) RoutineHandshake(id int) {
// derive keypair
err = peer.BeginSymmetricSession()
if err != nil {
device.log.Errorf("%v - Failed to derive keypair: %v", peer, err)
goto skip

View file

@ -18,10 +18,9 @@ import (
"sync"
"unsafe"
"golang.org/x/sys/unix"
"github.com/sagernet/wireguard-go/conn"
"github.com/sagernet/wireguard-go/rwcancel"
"golang.org/x/sys/unix"
)
func (device *Device) startRouteListener(bind conn.Bind) (*rwcancel.RWCancel, error) {