rename module

This commit is contained in:
KusakabeSi
2021-08-16 00:43:17 +00:00
parent 3957e9b9dd
commit 7801b56b41
27 changed files with 45 additions and 45 deletions

View File

@@ -16,7 +16,7 @@ import (
"golang.org/x/sys/windows"
"golang.zx2c4.com/wireguard/conn/winrio"
"github.com/KusakabeSi/EtherGuardVPN/conn/winrio"
)
const (

View File

@@ -12,7 +12,7 @@ import (
"os"
"strconv"
"golang.zx2c4.com/wireguard/conn"
"github.com/KusakabeSi/EtherGuardVPN/conn"
)
type ChannelBind struct {

View File

@@ -8,7 +8,7 @@ package device
import (
"errors"
"golang.zx2c4.com/wireguard/conn"
"github.com/KusakabeSi/EtherGuardVPN/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"
"github.com/KusakabeSi/EtherGuardVPN/conn"
"github.com/KusakabeSi/EtherGuardVPN/ratelimiter"
"github.com/KusakabeSi/EtherGuardVPN/rwcancel"
"github.com/KusakabeSi/EtherGuardVPN/tun"
)
type Device struct {

View File

@@ -19,9 +19,9 @@ import (
"testing"
"time"
"golang.zx2c4.com/wireguard/conn"
"golang.zx2c4.com/wireguard/conn/bindtest"
"golang.zx2c4.com/wireguard/tun/tuntest"
"github.com/KusakabeSi/EtherGuardVPN/conn"
"github.com/KusakabeSi/EtherGuardVPN/conn/bindtest"
"github.com/KusakabeSi/EtherGuardVPN/tun/tuntest"
)
// uapiCfg returns a string that contains cfg formatted use with IpcSet.

View File

@@ -12,7 +12,7 @@ import (
"time"
"unsafe"
"golang.zx2c4.com/wireguard/replay"
"github.com/KusakabeSi/EtherGuardVPN/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"
"github.com/KusakabeSi/EtherGuardVPN/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"
"github.com/KusakabeSi/EtherGuardVPN/conn"
"github.com/KusakabeSi/EtherGuardVPN/tun/tuntest"
)
func TestCurveWrappers(t *testing.T) {

View File

@@ -12,7 +12,7 @@ import (
"sync/atomic"
"time"
"golang.zx2c4.com/wireguard/conn"
"github.com/KusakabeSi/EtherGuardVPN/conn"
)
type Peer struct {

View File

@@ -18,7 +18,7 @@ import (
"golang.org/x/net/ipv4"
"golang.org/x/net/ipv6"
"golang.zx2c4.com/wireguard/conn"
"github.com/KusakabeSi/EtherGuardVPN/conn"
)
type QueueHandshakeElement struct {

View File

@@ -3,8 +3,8 @@
package device
import (
"golang.zx2c4.com/wireguard/conn"
"golang.zx2c4.com/wireguard/rwcancel"
"github.com/KusakabeSi/EtherGuardVPN/conn"
"github.com/KusakabeSi/EtherGuardVPN/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"
"github.com/KusakabeSi/EtherGuardVPN/conn"
"github.com/KusakabeSi/EtherGuardVPN/rwcancel"
)
func (device *Device) startRouteListener(bind conn.Bind) (*rwcancel.RWCancel, error) {

View File

@@ -9,7 +9,7 @@ import (
"fmt"
"sync/atomic"
"golang.zx2c4.com/wireguard/tun"
"github.com/KusakabeSi/EtherGuardVPN/tun"
)
const DefaultMTU = 1420

View File

@@ -18,7 +18,7 @@ import (
"sync/atomic"
"time"
"golang.zx2c4.com/wireguard/ipc"
"github.com/KusakabeSi/EtherGuardVPN/ipc"
)
type IPCError struct {

2
go.mod
View File

@@ -1,4 +1,4 @@
module golang.zx2c4.com/wireguard
module github.com/KusakabeSi/EtherGuardVPN
go 1.16

View File

@@ -10,7 +10,7 @@ import (
"os"
"golang.org/x/sys/unix"
"golang.zx2c4.com/wireguard/rwcancel"
"github.com/KusakabeSi/EtherGuardVPN/rwcancel"
)
type UAPIListener struct {

View File

@@ -10,7 +10,7 @@ import (
"golang.org/x/sys/windows"
"golang.zx2c4.com/wireguard/ipc/winpipe"
"github.com/KusakabeSi/EtherGuardVPN/ipc/winpipe"
)
// TODO: replace these with actual standard windows error numbers from the win package

View File

@@ -22,7 +22,7 @@ import (
"time"
"golang.org/x/sys/windows"
"golang.zx2c4.com/wireguard/ipc/winpipe"
"github.com/KusakabeSi/EtherGuardVPN/ipc/winpipe"
)
func randomPipePath() string {

View File

@@ -15,10 +15,10 @@ import (
"strconv"
"syscall"
"golang.zx2c4.com/wireguard/conn"
"golang.zx2c4.com/wireguard/device"
"golang.zx2c4.com/wireguard/ipc"
"golang.zx2c4.com/wireguard/tun"
"github.com/KusakabeSi/EtherGuardVPN/conn"
"github.com/KusakabeSi/EtherGuardVPN/device"
"github.com/KusakabeSi/EtherGuardVPN/ipc"
"github.com/KusakabeSi/EtherGuardVPN/tun"
)
const (

View File

@@ -11,11 +11,11 @@ import (
"os/signal"
"syscall"
"golang.zx2c4.com/wireguard/conn"
"golang.zx2c4.com/wireguard/device"
"golang.zx2c4.com/wireguard/ipc"
"github.com/KusakabeSi/EtherGuardVPN/conn"
"github.com/KusakabeSi/EtherGuardVPN/device"
"github.com/KusakabeSi/EtherGuardVPN/ipc"
"golang.zx2c4.com/wireguard/tun"
"github.com/KusakabeSi/EtherGuardVPN/tun"
)
const (

View File

@@ -13,9 +13,9 @@ import (
"net"
"net/http"
"golang.zx2c4.com/wireguard/conn"
"golang.zx2c4.com/wireguard/device"
"golang.zx2c4.com/wireguard/tun/netstack"
"github.com/KusakabeSi/EtherGuardVPN/conn"
"github.com/KusakabeSi/EtherGuardVPN/device"
"github.com/KusakabeSi/EtherGuardVPN/tun/netstack"
)
func main() {

View File

@@ -13,9 +13,9 @@ import (
"net"
"net/http"
"golang.zx2c4.com/wireguard/conn"
"golang.zx2c4.com/wireguard/device"
"golang.zx2c4.com/wireguard/tun/netstack"
"github.com/KusakabeSi/EtherGuardVPN/conn"
"github.com/KusakabeSi/EtherGuardVPN/device"
"github.com/KusakabeSi/EtherGuardVPN/tun/netstack"
)
func main() {

View File

@@ -18,7 +18,7 @@ import (
"strings"
"time"
"golang.zx2c4.com/wireguard/tun"
"github.com/KusakabeSi/EtherGuardVPN/tun"
"golang.org/x/net/dns/dnsmessage"
"gvisor.dev/gvisor/pkg/tcpip"

View File

@@ -21,7 +21,7 @@ import (
"golang.org/x/net/ipv6"
"golang.org/x/sys/unix"
"golang.zx2c4.com/wireguard/rwcancel"
"github.com/KusakabeSi/EtherGuardVPN/rwcancel"
)
const (

View File

@@ -17,7 +17,7 @@ import (
"golang.org/x/sys/windows"
"golang.zx2c4.com/wireguard/tun/wintun"
"github.com/KusakabeSi/EtherGuardVPN/tun/wintun"
)
const (

View File

@@ -11,7 +11,7 @@ import (
"net"
"os"
"golang.zx2c4.com/wireguard/tun"
"github.com/KusakabeSi/EtherGuardVPN/tun"
)
func Ping(dst, src net.IP) []byte {

View File

@@ -15,7 +15,7 @@ import (
"golang.org/x/sys/windows"
"golang.zx2c4.com/wireguard/tun/wintun/memmod"
"github.com/KusakabeSi/EtherGuardVPN/tun/wintun/memmod"
)
type lazyDLL struct {