From 1db8e03c860f1ebc155da5364956e8c48a8b0277 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Tue, 8 Nov 2022 14:54:19 +0800 Subject: [PATCH] Fix format --- outbound/wireguard.go | 1 - transport/wireguard/client_bind.go | 1 - transport/wireguard/device.go | 1 - transport/wireguard/device_stack.go | 2 +- transport/wireguard/device_system.go | 1 - transport/wireguard/endpoint.go | 1 - transport/wireguard/server_bind.go | 1 - 7 files changed, 1 insertion(+), 7 deletions(-) diff --git a/outbound/wireguard.go b/outbound/wireguard.go index dd88c4ff..dd194729 100644 --- a/outbound/wireguard.go +++ b/outbound/wireguard.go @@ -22,7 +22,6 @@ import ( E "github.com/sagernet/sing/common/exceptions" M "github.com/sagernet/sing/common/metadata" N "github.com/sagernet/sing/common/network" - "github.com/sagernet/wireguard-go/device" ) diff --git a/transport/wireguard/client_bind.go b/transport/wireguard/client_bind.go index 04863e4f..91a30f24 100644 --- a/transport/wireguard/client_bind.go +++ b/transport/wireguard/client_bind.go @@ -8,7 +8,6 @@ import ( "github.com/sagernet/sing/common" M "github.com/sagernet/sing/common/metadata" N "github.com/sagernet/sing/common/network" - "github.com/sagernet/wireguard-go/conn" ) diff --git a/transport/wireguard/device.go b/transport/wireguard/device.go index 1be1c7a5..14e04bf5 100644 --- a/transport/wireguard/device.go +++ b/transport/wireguard/device.go @@ -2,7 +2,6 @@ package wireguard import ( N "github.com/sagernet/sing/common/network" - "github.com/sagernet/wireguard-go/tun" ) diff --git a/transport/wireguard/device_stack.go b/transport/wireguard/device_stack.go index 118cb3e4..2210f127 100644 --- a/transport/wireguard/device_stack.go +++ b/transport/wireguard/device_stack.go @@ -11,8 +11,8 @@ import ( E "github.com/sagernet/sing/common/exceptions" M "github.com/sagernet/sing/common/metadata" N "github.com/sagernet/sing/common/network" - "github.com/sagernet/wireguard-go/tun" + "gvisor.dev/gvisor/pkg/bufferv2" "gvisor.dev/gvisor/pkg/tcpip" "gvisor.dev/gvisor/pkg/tcpip/adapters/gonet" diff --git a/transport/wireguard/device_system.go b/transport/wireguard/device_system.go index a67b9b2a..ac8f285b 100644 --- a/transport/wireguard/device_system.go +++ b/transport/wireguard/device_system.go @@ -12,7 +12,6 @@ import ( "github.com/sagernet/sing-tun" M "github.com/sagernet/sing/common/metadata" N "github.com/sagernet/sing/common/network" - wgTun "github.com/sagernet/wireguard-go/tun" ) diff --git a/transport/wireguard/endpoint.go b/transport/wireguard/endpoint.go index 8ad561e3..dd2b7dbc 100644 --- a/transport/wireguard/endpoint.go +++ b/transport/wireguard/endpoint.go @@ -4,7 +4,6 @@ import ( "net/netip" M "github.com/sagernet/sing/common/metadata" - "github.com/sagernet/wireguard-go/conn" ) diff --git a/transport/wireguard/server_bind.go b/transport/wireguard/server_bind.go index f6df52ee..8e61897a 100644 --- a/transport/wireguard/server_bind.go +++ b/transport/wireguard/server_bind.go @@ -7,7 +7,6 @@ import ( E "github.com/sagernet/sing/common/exceptions" M "github.com/sagernet/sing/common/metadata" N "github.com/sagernet/sing/common/network" - "github.com/sagernet/wireguard-go/conn" )