Skip to content

Commit

Permalink
fixed import links
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdisml committed Feb 5, 2024
1 parent 918ea4e commit 439c503
Show file tree
Hide file tree
Showing 33 changed files with 55 additions and 55 deletions.
2 changes: 1 addition & 1 deletion conn/bind_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (

"golang.org/x/sys/windows"

"github.com/uoosef/wireguard-go/conn/winrio"
"github.com/bepass-org/wireguard-go/conn/winrio"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion conn/bindtest/bindtest.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"net/netip"
"os"

"github.com/uoosef/wireguard-go/conn"
"github.com/bepass-org/wireguard-go/conn"
)

type ChannelBind struct {
Expand Down
2 changes: 1 addition & 1 deletion device/bind_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package device
import (
"errors"

"github.com/uoosef/wireguard-go/conn"
"github.com/bepass-org/wireguard-go/conn"
)

type DummyDatagram struct {
Expand Down
8 changes: 4 additions & 4 deletions device/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
"sync/atomic"
"time"

"github.com/uoosef/wireguard-go/conn"
"github.com/uoosef/wireguard-go/ratelimiter"
"github.com/uoosef/wireguard-go/rwcancel"
"github.com/uoosef/wireguard-go/tun"
"github.com/bepass-org/wireguard-go/conn"
"github.com/bepass-org/wireguard-go/ratelimiter"
"github.com/bepass-org/wireguard-go/rwcancel"
"github.com/bepass-org/wireguard-go/tun"
)

type Device struct {
Expand Down
8 changes: 4 additions & 4 deletions device/device_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import (
"testing"
"time"

"github.com/uoosef/wireguard-go/conn"
"github.com/uoosef/wireguard-go/conn/bindtest"
"github.com/uoosef/wireguard-go/tun"
"github.com/uoosef/wireguard-go/tun/tuntest"
"github.com/bepass-org/wireguard-go/conn"
"github.com/bepass-org/wireguard-go/conn/bindtest"
"github.com/bepass-org/wireguard-go/tun"
"github.com/bepass-org/wireguard-go/tun/tuntest"
)

// uapiCfg returns a string that contains cfg formatted use with IpcSet.
Expand Down
2 changes: 1 addition & 1 deletion device/keypair.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"sync/atomic"
"time"

"github.com/uoosef/wireguard-go/replay"
"github.com/bepass-org/wireguard-go/replay"
)

/* Due to limitations in Go and /x/crypto there is currently
Expand Down
2 changes: 1 addition & 1 deletion device/noise-protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"golang.org/x/crypto/chacha20poly1305"
"golang.org/x/crypto/poly1305"

"github.com/uoosef/wireguard-go/tai64n"
"github.com/bepass-org/wireguard-go/tai64n"
)

type handshakeState int
Expand Down
4 changes: 2 additions & 2 deletions device/noise_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"encoding/binary"
"testing"

"github.com/uoosef/wireguard-go/conn"
"github.com/uoosef/wireguard-go/tun/tuntest"
"github.com/bepass-org/wireguard-go/conn"
"github.com/bepass-org/wireguard-go/tun/tuntest"
)

func TestCurveWrappers(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion device/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"sync/atomic"
"time"

"github.com/uoosef/wireguard-go/conn"
"github.com/bepass-org/wireguard-go/conn"
)

type Peer struct {
Expand Down
2 changes: 1 addition & 1 deletion device/queueconstants_android.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

package device

import "github.com/uoosef/wireguard-go/conn"
import "github.com/bepass-org/wireguard-go/conn"

/* Reduce memory consumption for Android */

Expand Down
2 changes: 1 addition & 1 deletion device/queueconstants_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

package device

import "github.com/uoosef/wireguard-go/conn"
import "github.com/bepass-org/wireguard-go/conn"

const (
QueueStagedSize = conn.IdealBatchSize
Expand Down
2 changes: 1 addition & 1 deletion device/receive.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"sync"
"time"

"github.com/uoosef/wireguard-go/conn"
"github.com/bepass-org/wireguard-go/conn"
"golang.org/x/crypto/chacha20poly1305"
"golang.org/x/net/ipv4"
"golang.org/x/net/ipv6"
Expand Down
4 changes: 2 additions & 2 deletions device/send.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
"sync"
"time"

"github.com/uoosef/wireguard-go/conn"
"github.com/uoosef/wireguard-go/tun"
"github.com/bepass-org/wireguard-go/conn"
"github.com/bepass-org/wireguard-go/tun"
"golang.org/x/crypto/chacha20poly1305"
"golang.org/x/net/ipv4"
"golang.org/x/net/ipv6"
Expand Down
4 changes: 2 additions & 2 deletions device/sticky_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
package device

import (
"github.com/uoosef/wireguard-go/conn"
"github.com/uoosef/wireguard-go/rwcancel"
"github.com/bepass-org/wireguard-go/conn"
"github.com/bepass-org/wireguard-go/rwcancel"
)

func (device *Device) startRouteListener(bind conn.Bind) (*rwcancel.RWCancel, error) {
Expand Down
4 changes: 2 additions & 2 deletions device/sticky_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (

"golang.org/x/sys/unix"

"github.com/uoosef/wireguard-go/conn"
"github.com/uoosef/wireguard-go/rwcancel"
"github.com/bepass-org/wireguard-go/conn"
"github.com/bepass-org/wireguard-go/rwcancel"
)

func (device *Device) startRouteListener(bind conn.Bind) (*rwcancel.RWCancel, error) {
Expand Down
2 changes: 1 addition & 1 deletion device/tun.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package device
import (
"fmt"

"github.com/uoosef/wireguard-go/tun"
"github.com/bepass-org/wireguard-go/tun"
)

const DefaultMTU = 1420
Expand Down
2 changes: 1 addition & 1 deletion device/uapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"sync"
"time"

"github.com/uoosef/wireguard-go/ipc"
"github.com/bepass-org/wireguard-go/ipc"
)

type IPCError struct {
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module github.com/uoosef/wireguard-go
module github.com/bepass-org/wireguard-go

go 1.20

replace github.com/Psiphon-Labs/psiphon-tunnel-core => github.com/uoosef/psiphon-tunnel-core v0.0.0-20240126135009-9fbc37b0b068
replace github.com/Psiphon-Labs/psiphon-tunnel-core => github.com/bepass-org/psiphon-tunnel-core v0.0.0-20240126135009-9fbc37b0b068

require (
github.com/MakeNowJust/heredoc/v2 v2.0.1
Expand Down
2 changes: 1 addition & 1 deletion ipc/namedpipe/namedpipe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"testing"
"time"

"github.com/uoosef/wireguard-go/ipc/namedpipe"
"github.com/bepass-org/wireguard-go/ipc/namedpipe"
"golang.org/x/sys/windows"
)

Expand Down
2 changes: 1 addition & 1 deletion ipc/uapi_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"net"
"os"

"github.com/uoosef/wireguard-go/rwcancel"
"github.com/bepass-org/wireguard-go/rwcancel"
"golang.org/x/sys/unix"
)

Expand Down
2 changes: 1 addition & 1 deletion ipc/uapi_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package ipc
import (
"net"

"github.com/uoosef/wireguard-go/ipc/namedpipe"
"github.com/bepass-org/wireguard-go/ipc/namedpipe"
"golang.org/x/sys/windows"
)

Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package main
import (
"flag"
"fmt"
"github.com/uoosef/wireguard-go/psiphon"
"github.com/uoosef/wireguard-go/warp"
"github.com/uoosef/wireguard-go/wiresocks"
"github.com/bepass-org/wireguard-go/psiphon"
"github.com/bepass-org/wireguard-go/warp"
"github.com/bepass-org/wireguard-go/wiresocks"
"log"
"net"
"os"
Expand Down
6 changes: 3 additions & 3 deletions tun/netstack/examples/http_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
"net/http"
"net/netip"

"github.com/uoosef/wireguard-go/conn"
"github.com/uoosef/wireguard-go/device"
"github.com/uoosef/wireguard-go/tun/netstack"
"github.com/bepass-org/wireguard-go/conn"
"github.com/bepass-org/wireguard-go/device"
"github.com/bepass-org/wireguard-go/tun/netstack"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions tun/netstack/examples/http_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (
"net/http"
"net/netip"

"github.com/uoosef/wireguard-go/conn"
"github.com/uoosef/wireguard-go/device"
"github.com/uoosef/wireguard-go/tun/netstack"
"github.com/bepass-org/wireguard-go/conn"
"github.com/bepass-org/wireguard-go/device"
"github.com/bepass-org/wireguard-go/tun/netstack"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions tun/netstack/examples/ping_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import (
"golang.org/x/net/icmp"
"golang.org/x/net/ipv4"

"github.com/uoosef/wireguard-go/conn"
"github.com/uoosef/wireguard-go/device"
"github.com/uoosef/wireguard-go/tun/netstack"
"github.com/bepass-org/wireguard-go/conn"
"github.com/bepass-org/wireguard-go/device"
"github.com/bepass-org/wireguard-go/tun/netstack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion tun/netstack/tun.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"syscall"
"time"

"github.com/uoosef/wireguard-go/tun"
"github.com/bepass-org/wireguard-go/tun"

"golang.org/x/net/dns/dnsmessage"
"gvisor.dev/gvisor/pkg/buffer"
Expand Down
2 changes: 1 addition & 1 deletion tun/offload_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"io"
"unsafe"

"github.com/uoosef/wireguard-go/conn"
"github.com/bepass-org/wireguard-go/conn"
"golang.org/x/sys/unix"
)

Expand Down
2 changes: 1 addition & 1 deletion tun/offload_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"net/netip"
"testing"

"github.com/uoosef/wireguard-go/conn"
"github.com/bepass-org/wireguard-go/conn"
"golang.org/x/sys/unix"
"gvisor.dev/gvisor/pkg/tcpip"
"gvisor.dev/gvisor/pkg/tcpip/header"
Expand Down
4 changes: 2 additions & 2 deletions tun/tun_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import (
"time"
"unsafe"

"github.com/uoosef/wireguard-go/conn"
"github.com/uoosef/wireguard-go/rwcancel"
"github.com/bepass-org/wireguard-go/conn"
"github.com/bepass-org/wireguard-go/rwcancel"
"golang.org/x/sys/unix"
)

Expand Down
2 changes: 1 addition & 1 deletion tun/tuntest/tuntest.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"net/netip"
"os"

"github.com/uoosef/wireguard-go/tun"
"github.com/bepass-org/wireguard-go/tun"
)

func Ping(dst, src netip.Addr) []byte {
Expand Down
2 changes: 1 addition & 1 deletion wiresocks/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"encoding/hex"
"errors"
"fmt"
"github.com/uoosef/wireguard-go/warp"
"github.com/bepass-org/wireguard-go/warp"
"math/rand"
"net"
"strings"
Expand Down
2 changes: 1 addition & 1 deletion wiresocks/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"github.com/bepass-org/proxy/pkg/mixed"
"github.com/bepass-org/proxy/pkg/statute"
"github.com/uoosef/wireguard-go/tun/netstack"
"github.com/bepass-org/wireguard-go/tun/netstack"
"io"
"log"
)
Expand Down
6 changes: 3 additions & 3 deletions wiresocks/wiresocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"net/netip"

"github.com/MakeNowJust/heredoc/v2"
"github.com/uoosef/wireguard-go/conn"
"github.com/uoosef/wireguard-go/device"
"github.com/uoosef/wireguard-go/tun/netstack"
"github.com/bepass-org/wireguard-go/conn"
"github.com/bepass-org/wireguard-go/device"
"github.com/bepass-org/wireguard-go/tun/netstack"
)

// DeviceSetting contains the parameters for setting up a tun interface
Expand Down

0 comments on commit 439c503

Please sign in to comment.