change imports to personal fork

This commit is contained in:
HeshamTB 2024-01-07 22:03:11 +03:00
parent a626b268ba
commit 4f8b7857f9
30 changed files with 53 additions and 53 deletions

View File

@ -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 (

View File

@ -12,7 +12,7 @@ import (
"net/netip"
"os"
"golang.zx2c4.com/wireguard/conn"
"gitea.hbanafa.com/hesham/wireguard-go/conn"
)
type ChannelBind struct {

View File

@ -8,7 +8,7 @@ package device
import (
"errors"
"golang.zx2c4.com/wireguard/conn"
"gitea.hbanafa.com/hesham/wireguard-go/conn"
)
type DummyDatagram struct {

View File

@ -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 {

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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) {

View File

@ -12,7 +12,7 @@ import (
"sync/atomic"
"time"
"golang.zx2c4.com/wireguard/conn"
"gitea.hbanafa.com/hesham/wireguard-go/conn"
)
type Peer struct {

View File

@ -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 */

View File

@ -7,7 +7,7 @@
package device
import "golang.zx2c4.com/wireguard/conn"
import "gitea.hbanafa.com/hesham/wireguard-go/conn"
const (
QueueStagedSize = conn.IdealBatchSize

View File

@ -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 {

View File

@ -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

View File

@ -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) {

View File

@ -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) {

View File

@ -8,7 +8,7 @@ package device
import (
"fmt"
"golang.zx2c4.com/wireguard/tun"
"gitea.hbanafa.com/hesham/wireguard-go/tun"
)
const DefaultMTU = 1420

View File

@ -18,7 +18,7 @@ import (
"sync"
"time"
"golang.zx2c4.com/wireguard/ipc"
"gitea.hbanafa.com/hesham/wireguard-go/ipc"
)
type IPCError struct {

View File

@ -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 {

View File

@ -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 {

View File

@ -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

View File

@ -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 (

View File

@ -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 (

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {

View File

@ -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"

View File

@ -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

View File

@ -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"
)

View File

@ -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 (

View File

@ -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 {