滔哥 4 月之前
父节点
当前提交
29050b066d
共有 7 个文件被更改,包括 12 次插入12 次删除
  1. 1 1
      src/go.mod
  2. 3 3
      src/main.go
  3. 1 1
      src/pkg/config/config.go
  4. 3 3
      src/pkg/web/web.go
  5. 2 2
      src/pkg/wg/config.go
  6. 1 1
      src/pkg/wg/tun_userspace.go
  7. 1 1
      src/pkg/wg/wg.go

+ 1 - 1
src/go.mod

@@ -1,4 +1,4 @@
-module fahi
+module ltwg
 
 
 go 1.21
 go 1.21
 
 

+ 3 - 3
src/main.go

@@ -1,9 +1,9 @@
 package main
 package main
 
 
 import (
 import (
-	"fahi/pkg/config"
-	"fahi/pkg/web"
-	"fahi/pkg/wg"
+	"ltwg/pkg/config"
+	"ltwg/pkg/web"
+	"ltwg/pkg/wg"
 	"os"
 	"os"
 	"os/signal"
 	"os/signal"
 	"syscall"
 	"syscall"

+ 1 - 1
src/pkg/config/config.go

@@ -1,7 +1,7 @@
 package config
 package config
 
 
 import (
 import (
-	"fahi/pkg/util"
+	"ltwg/pkg/util"
 	"net"
 	"net"
 	"os"
 	"os"
 	"strconv"
 	"strconv"

+ 3 - 3
src/pkg/web/web.go

@@ -2,12 +2,12 @@ package web
 
 
 import (
 import (
 	"embed"
 	"embed"
-	"fahi/pkg/config"
-	"fahi/pkg/util"
-	"fahi/pkg/wg"
 	"fmt"
 	"fmt"
 	"image/png"
 	"image/png"
 	"io/fs"
 	"io/fs"
+	"ltwg/pkg/config"
+	"ltwg/pkg/util"
+	"ltwg/pkg/wg"
 	"net/http"
 	"net/http"
 	"strings"
 	"strings"
 
 

+ 2 - 2
src/pkg/wg/config.go

@@ -1,9 +1,9 @@
 package wg
 package wg
 
 
 import (
 import (
-	cfg "fahi/pkg/config"
-	"fahi/pkg/util"
 	"fmt"
 	"fmt"
+	cfg "ltwg/pkg/config"
+	"ltwg/pkg/util"
 	"net"
 	"net"
 	"os"
 	"os"
 	"strings"
 	"strings"

+ 1 - 1
src/pkg/wg/tun_userspace.go

@@ -19,7 +19,7 @@ func (w *WgIface) createWithUserspace() error {
 	w.Interface = tunIface
 	w.Interface = tunIface
 
 
 	// We need to create a wireguard-go device and listen to configuration requests
 	// We need to create a wireguard-go device and listen to configuration requests
-	w.tunDevice = device.NewDevice(tunIface, conn.NewDefaultBind(), device.NewLogger(device.LogLevelSilent, "[fahi] "))
+	w.tunDevice = device.NewDevice(tunIface, conn.NewDefaultBind(), device.NewLogger(device.LogLevelSilent, "[ltwg] "))
 
 
 	err = w.assignAddr()
 	err = w.assignAddr()
 	if err != nil {
 	if err != nil {

+ 1 - 1
src/pkg/wg/wg.go

@@ -1,8 +1,8 @@
 package wg
 package wg
 
 
 import (
 import (
-	"fahi/pkg/config"
 	"fmt"
 	"fmt"
+	"ltwg/pkg/config"
 	"net"
 	"net"
 	"os"
 	"os"
 	"sync"
 	"sync"