From 4f8b7857f9bb5555eaddcdd1b9b8c6eca8ef1e25 Mon Sep 17 00:00:00 2001 From: HeshamTB Date: Sun, 7 Jan 2024 22:03:11 +0300 Subject: [PATCH] change imports to personal fork --- conn/bind_windows.go | 2 +- conn/bindtest/bindtest.go | 2 +- device/bind_test.go | 2 +- device/device.go | 8 ++++---- device/device_test.go | 8 ++++---- device/keypair.go | 2 +- device/noise-protocol.go | 2 +- device/noise_test.go | 4 ++-- device/peer.go | 2 +- device/queueconstants_android.go | 2 +- device/queueconstants_default.go | 2 +- device/receive.go | 2 +- device/send.go | 4 ++-- device/sticky_default.go | 4 ++-- device/sticky_linux.go | 4 ++-- device/tun.go | 2 +- device/uapi.go | 2 +- ipc/namedpipe/namedpipe_test.go | 2 +- ipc/uapi_linux.go | 2 +- ipc/uapi_windows.go | 2 +- main.go | 8 ++++---- main_windows.go | 8 ++++---- tun/netstack/examples/http_client.go | 6 +++--- tun/netstack/examples/http_server.go | 6 +++--- tun/netstack/examples/ping_client.go | 6 +++--- tun/netstack/tun.go | 2 +- tun/offload_linux.go | 2 +- tun/offload_linux_test.go | 2 +- tun/tun_linux.go | 4 ++-- tun/tuntest/tuntest.go | 2 +- 30 files changed, 53 insertions(+), 53 deletions(-) diff --git a/conn/bind_windows.go b/conn/bind_windows.go index d5095e0..a0f4c9f 100644 --- a/conn/bind_windows.go +++ b/conn/bind_windows.go @@ -17,7 +17,7 @@ import ( "golang.org/x/sys/windows" - "golang.zx2c4.com/wireguard/conn/winrio" + "gitea.hbanafa.com/hesham/wireguard-go/conn/winrio" ) const ( diff --git a/conn/bindtest/bindtest.go b/conn/bindtest/bindtest.go index 74e7add..e0b0990 100644 --- a/conn/bindtest/bindtest.go +++ b/conn/bindtest/bindtest.go @@ -12,7 +12,7 @@ import ( "net/netip" "os" - "golang.zx2c4.com/wireguard/conn" + "gitea.hbanafa.com/hesham/wireguard-go/conn" ) type ChannelBind struct { diff --git a/device/bind_test.go b/device/bind_test.go index 302a521..a5a5428 100644 --- a/device/bind_test.go +++ b/device/bind_test.go @@ -8,7 +8,7 @@ package device import ( "errors" - "golang.zx2c4.com/wireguard/conn" + "gitea.hbanafa.com/hesham/wireguard-go/conn" ) type DummyDatagram struct { diff --git a/device/device.go b/device/device.go index 83c33ee..e9eb20c 100644 --- a/device/device.go +++ b/device/device.go @@ -11,10 +11,10 @@ import ( "sync/atomic" "time" - "golang.zx2c4.com/wireguard/conn" - "golang.zx2c4.com/wireguard/ratelimiter" - "golang.zx2c4.com/wireguard/rwcancel" - "golang.zx2c4.com/wireguard/tun" + "gitea.hbanafa.com/hesham/wireguard-go/conn" + "gitea.hbanafa.com/hesham/wireguard-go/ratelimiter" + "gitea.hbanafa.com/hesham/wireguard-go/rwcancel" + "gitea.hbanafa.com/hesham/wireguard-go/tun" ) type Device struct { diff --git a/device/device_test.go b/device/device_test.go index fff172b..8c9bc1f 100644 --- a/device/device_test.go +++ b/device/device_test.go @@ -20,10 +20,10 @@ import ( "testing" "time" - "golang.zx2c4.com/wireguard/conn" - "golang.zx2c4.com/wireguard/conn/bindtest" - "golang.zx2c4.com/wireguard/tun" - "golang.zx2c4.com/wireguard/tun/tuntest" + "gitea.hbanafa.com/hesham/wireguard-go/conn" + "gitea.hbanafa.com/hesham/wireguard-go/conn/bindtest" + "gitea.hbanafa.com/hesham/wireguard-go/tun" + "gitea.hbanafa.com/hesham/wireguard-go/tun/tuntest" ) // uapiCfg returns a string that contains cfg formatted use with IpcSet. diff --git a/device/keypair.go b/device/keypair.go index e3540d7..504a1bf 100644 --- a/device/keypair.go +++ b/device/keypair.go @@ -11,7 +11,7 @@ import ( "sync/atomic" "time" - "golang.zx2c4.com/wireguard/replay" + "gitea.hbanafa.com/hesham/wireguard-go/replay" ) /* Due to limitations in Go and /x/crypto there is currently diff --git a/device/noise-protocol.go b/device/noise-protocol.go index 2fe352e..a9a7026 100644 --- a/device/noise-protocol.go +++ b/device/noise-protocol.go @@ -15,7 +15,7 @@ import ( "golang.org/x/crypto/chacha20poly1305" "golang.org/x/crypto/poly1305" - "golang.zx2c4.com/wireguard/tai64n" + "gitea.hbanafa.com/hesham/wireguard-go/tai64n" ) type handshakeState int diff --git a/device/noise_test.go b/device/noise_test.go index 2dd5324..de1314f 100644 --- a/device/noise_test.go +++ b/device/noise_test.go @@ -10,8 +10,8 @@ import ( "encoding/binary" "testing" - "golang.zx2c4.com/wireguard/conn" - "golang.zx2c4.com/wireguard/tun/tuntest" + "gitea.hbanafa.com/hesham/wireguard-go/conn" + "gitea.hbanafa.com/hesham/wireguard-go/tun/tuntest" ) func TestCurveWrappers(t *testing.T) { diff --git a/device/peer.go b/device/peer.go index 47a2f14..7cdae12 100644 --- a/device/peer.go +++ b/device/peer.go @@ -12,7 +12,7 @@ import ( "sync/atomic" "time" - "golang.zx2c4.com/wireguard/conn" + "gitea.hbanafa.com/hesham/wireguard-go/conn" ) type Peer struct { diff --git a/device/queueconstants_android.go b/device/queueconstants_android.go index 25f700a..028871b 100644 --- a/device/queueconstants_android.go +++ b/device/queueconstants_android.go @@ -5,7 +5,7 @@ package device -import "golang.zx2c4.com/wireguard/conn" +import "gitea.hbanafa.com/hesham/wireguard-go/conn" /* Reduce memory consumption for Android */ diff --git a/device/queueconstants_default.go b/device/queueconstants_default.go index ea763d0..7089ed5 100644 --- a/device/queueconstants_default.go +++ b/device/queueconstants_default.go @@ -7,7 +7,7 @@ package device -import "golang.zx2c4.com/wireguard/conn" +import "gitea.hbanafa.com/hesham/wireguard-go/conn" const ( QueueStagedSize = conn.IdealBatchSize diff --git a/device/receive.go b/device/receive.go index 1ab3e29..b326b59 100644 --- a/device/receive.go +++ b/device/receive.go @@ -16,7 +16,7 @@ import ( "golang.org/x/crypto/chacha20poly1305" "golang.org/x/net/ipv4" "golang.org/x/net/ipv6" - "golang.zx2c4.com/wireguard/conn" + "gitea.hbanafa.com/hesham/wireguard-go/conn" ) type QueueHandshakeElement struct { diff --git a/device/send.go b/device/send.go index 769720a..87df928 100644 --- a/device/send.go +++ b/device/send.go @@ -17,8 +17,8 @@ import ( "golang.org/x/crypto/chacha20poly1305" "golang.org/x/net/ipv4" "golang.org/x/net/ipv6" - "golang.zx2c4.com/wireguard/conn" - "golang.zx2c4.com/wireguard/tun" + "gitea.hbanafa.com/hesham/wireguard-go/conn" + "gitea.hbanafa.com/hesham/wireguard-go/tun" ) /* Outbound flow diff --git a/device/sticky_default.go b/device/sticky_default.go index 1038256..d42eb66 100644 --- a/device/sticky_default.go +++ b/device/sticky_default.go @@ -3,8 +3,8 @@ package device import ( - "golang.zx2c4.com/wireguard/conn" - "golang.zx2c4.com/wireguard/rwcancel" + "gitea.hbanafa.com/hesham/wireguard-go/conn" + "gitea.hbanafa.com/hesham/wireguard-go/rwcancel" ) func (device *Device) startRouteListener(bind conn.Bind) (*rwcancel.RWCancel, error) { diff --git a/device/sticky_linux.go b/device/sticky_linux.go index 6057ff1..88a5b56 100644 --- a/device/sticky_linux.go +++ b/device/sticky_linux.go @@ -20,8 +20,8 @@ import ( "golang.org/x/sys/unix" - "golang.zx2c4.com/wireguard/conn" - "golang.zx2c4.com/wireguard/rwcancel" + "gitea.hbanafa.com/hesham/wireguard-go/conn" + "gitea.hbanafa.com/hesham/wireguard-go/rwcancel" ) func (device *Device) startRouteListener(bind conn.Bind) (*rwcancel.RWCancel, error) { diff --git a/device/tun.go b/device/tun.go index 2a2ace9..2424c02 100644 --- a/device/tun.go +++ b/device/tun.go @@ -8,7 +8,7 @@ package device import ( "fmt" - "golang.zx2c4.com/wireguard/tun" + "gitea.hbanafa.com/hesham/wireguard-go/tun" ) const DefaultMTU = 1420 diff --git a/device/uapi.go b/device/uapi.go index d81dae3..88f7d81 100644 --- a/device/uapi.go +++ b/device/uapi.go @@ -18,7 +18,7 @@ import ( "sync" "time" - "golang.zx2c4.com/wireguard/ipc" + "gitea.hbanafa.com/hesham/wireguard-go/ipc" ) type IPCError struct { diff --git a/ipc/namedpipe/namedpipe_test.go b/ipc/namedpipe/namedpipe_test.go index 998453b..d2b6284 100644 --- a/ipc/namedpipe/namedpipe_test.go +++ b/ipc/namedpipe/namedpipe_test.go @@ -21,7 +21,7 @@ import ( "time" "golang.org/x/sys/windows" - "golang.zx2c4.com/wireguard/ipc/namedpipe" + "gitea.hbanafa.com/hesham/wireguard-go/ipc/namedpipe" ) func randomPipePath() string { diff --git a/ipc/uapi_linux.go b/ipc/uapi_linux.go index 1562a18..a91d94f 100644 --- a/ipc/uapi_linux.go +++ b/ipc/uapi_linux.go @@ -10,7 +10,7 @@ import ( "os" "golang.org/x/sys/unix" - "golang.zx2c4.com/wireguard/rwcancel" + "gitea.hbanafa.com/hesham/wireguard-go/rwcancel" ) type UAPIListener struct { diff --git a/ipc/uapi_windows.go b/ipc/uapi_windows.go index aa023c9..c06ffba 100644 --- a/ipc/uapi_windows.go +++ b/ipc/uapi_windows.go @@ -9,7 +9,7 @@ import ( "net" "golang.org/x/sys/windows" - "golang.zx2c4.com/wireguard/ipc/namedpipe" + "gitea.hbanafa.com/hesham/wireguard-go/ipc/namedpipe" ) // TODO: replace these with actual standard windows error numbers from the win package diff --git a/main.go b/main.go index 3dc5456..2789ac9 100644 --- a/main.go +++ b/main.go @@ -15,10 +15,10 @@ import ( "strconv" "golang.org/x/sys/unix" - "golang.zx2c4.com/wireguard/conn" - "golang.zx2c4.com/wireguard/device" - "golang.zx2c4.com/wireguard/ipc" - "golang.zx2c4.com/wireguard/tun" + "gitea.hbanafa.com/hesham/wireguard-go/conn" + "gitea.hbanafa.com/hesham/wireguard-go/device" + "gitea.hbanafa.com/hesham/wireguard-go/ipc" + "gitea.hbanafa.com/hesham/wireguard-go/tun" ) const ( diff --git a/main_windows.go b/main_windows.go index a4dc46f..fb19466 100644 --- a/main_windows.go +++ b/main_windows.go @@ -12,11 +12,11 @@ import ( "golang.org/x/sys/windows" - "golang.zx2c4.com/wireguard/conn" - "golang.zx2c4.com/wireguard/device" - "golang.zx2c4.com/wireguard/ipc" + "gitea.hbanafa.com/hesham/wireguard-go/conn" + "gitea.hbanafa.com/hesham/wireguard-go/device" + "gitea.hbanafa.com/hesham/wireguard-go/ipc" - "golang.zx2c4.com/wireguard/tun" + "gitea.hbanafa.com/hesham/wireguard-go/tun" ) const ( diff --git a/tun/netstack/examples/http_client.go b/tun/netstack/examples/http_client.go index ccd32ed..1e2d426 100644 --- a/tun/netstack/examples/http_client.go +++ b/tun/netstack/examples/http_client.go @@ -13,9 +13,9 @@ import ( "net/http" "net/netip" - "golang.zx2c4.com/wireguard/conn" - "golang.zx2c4.com/wireguard/device" - "golang.zx2c4.com/wireguard/tun/netstack" + "gitea.hbanafa.com/hesham/wireguard-go/conn" + "gitea.hbanafa.com/hesham/wireguard-go/device" + "gitea.hbanafa.com/hesham/wireguard-go/tun/netstack" ) func main() { diff --git a/tun/netstack/examples/http_server.go b/tun/netstack/examples/http_server.go index f5b7a8f..af08428 100644 --- a/tun/netstack/examples/http_server.go +++ b/tun/netstack/examples/http_server.go @@ -14,9 +14,9 @@ import ( "net/http" "net/netip" - "golang.zx2c4.com/wireguard/conn" - "golang.zx2c4.com/wireguard/device" - "golang.zx2c4.com/wireguard/tun/netstack" + "gitea.hbanafa.com/hesham/wireguard-go/conn" + "gitea.hbanafa.com/hesham/wireguard-go/device" + "gitea.hbanafa.com/hesham/wireguard-go/tun/netstack" ) func main() { diff --git a/tun/netstack/examples/ping_client.go b/tun/netstack/examples/ping_client.go index 2eef0fb..33dbc14 100644 --- a/tun/netstack/examples/ping_client.go +++ b/tun/netstack/examples/ping_client.go @@ -17,9 +17,9 @@ import ( "golang.org/x/net/icmp" "golang.org/x/net/ipv4" - "golang.zx2c4.com/wireguard/conn" - "golang.zx2c4.com/wireguard/device" - "golang.zx2c4.com/wireguard/tun/netstack" + "gitea.hbanafa.com/hesham/wireguard-go/conn" + "gitea.hbanafa.com/hesham/wireguard-go/device" + "gitea.hbanafa.com/hesham/wireguard-go/tun/netstack" ) func main() { diff --git a/tun/netstack/tun.go b/tun/netstack/tun.go index 2b73054..67ecafc 100644 --- a/tun/netstack/tun.go +++ b/tun/netstack/tun.go @@ -22,7 +22,7 @@ import ( "syscall" "time" - "golang.zx2c4.com/wireguard/tun" + "gitea.hbanafa.com/hesham/wireguard-go/tun" "golang.org/x/net/dns/dnsmessage" "gvisor.dev/gvisor/pkg/buffer" diff --git a/tun/offload_linux.go b/tun/offload_linux.go index 9ff7fea..75eb53f 100644 --- a/tun/offload_linux.go +++ b/tun/offload_linux.go @@ -13,7 +13,7 @@ import ( "unsafe" "golang.org/x/sys/unix" - "golang.zx2c4.com/wireguard/conn" + "gitea.hbanafa.com/hesham/wireguard-go/conn" ) const tcpFlagsOffset = 13 diff --git a/tun/offload_linux_test.go b/tun/offload_linux_test.go index ae55c8c..8a4f751 100644 --- a/tun/offload_linux_test.go +++ b/tun/offload_linux_test.go @@ -10,7 +10,7 @@ import ( "testing" "golang.org/x/sys/unix" - "golang.zx2c4.com/wireguard/conn" + "gitea.hbanafa.com/hesham/wireguard-go/conn" "gvisor.dev/gvisor/pkg/tcpip" "gvisor.dev/gvisor/pkg/tcpip/header" ) diff --git a/tun/tun_linux.go b/tun/tun_linux.go index bd69cb5..4c082d4 100644 --- a/tun/tun_linux.go +++ b/tun/tun_linux.go @@ -18,8 +18,8 @@ import ( "unsafe" "golang.org/x/sys/unix" - "golang.zx2c4.com/wireguard/conn" - "golang.zx2c4.com/wireguard/rwcancel" + "gitea.hbanafa.com/hesham/wireguard-go/conn" + "gitea.hbanafa.com/hesham/wireguard-go/rwcancel" ) const ( diff --git a/tun/tuntest/tuntest.go b/tun/tuntest/tuntest.go index d07e860..bb71cdc 100644 --- a/tun/tuntest/tuntest.go +++ b/tun/tuntest/tuntest.go @@ -11,7 +11,7 @@ import ( "net/netip" "os" - "golang.zx2c4.com/wireguard/tun" + "gitea.hbanafa.com/hesham/wireguard-go/tun" ) func Ping(dst, src netip.Addr) []byte {