fix: update wireguard imports
This commit is contained in:
@@ -8,9 +8,9 @@ import (
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"github.com/bepass-org/wireguard-go/warp"
|
||||
T "github.com/sagernet/sing-box/option"
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/uoosef/wireguard-go/warp"
|
||||
)
|
||||
|
||||
var warpKey string
|
||||
|
||||
@@ -9,8 +9,8 @@ import (
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"github.com/bepass-org/wireguard-go/warp"
|
||||
T "github.com/sagernet/sing-box/option"
|
||||
"github.com/uoosef/wireguard-go/warp"
|
||||
)
|
||||
|
||||
type WireGuardConfig struct {
|
||||
|
||||
5
go.mod
5
go.mod
@@ -3,6 +3,7 @@ module github.com/hiddify/libcore
|
||||
go 1.21.5
|
||||
|
||||
require (
|
||||
github.com/bepass-org/wireguard-go v0.0.16-alpha
|
||||
github.com/hiddify/ray2sing v0.0.0-20240130210008-8975ff77e3cd
|
||||
github.com/kardianos/service v1.2.2
|
||||
github.com/sagernet/gomobile v0.1.1
|
||||
@@ -10,7 +11,6 @@ require (
|
||||
github.com/sagernet/sing-box v1.8.4
|
||||
github.com/sagernet/sing-dns v0.1.12
|
||||
github.com/spf13/cobra v1.8.0
|
||||
github.com/uoosef/wireguard-go v0.0.15-alpha
|
||||
github.com/xmdhs/clash2singbox v0.0.2
|
||||
golang.org/x/sys v0.16.0
|
||||
gopkg.in/yaml.v3 v3.0.1
|
||||
@@ -19,7 +19,6 @@ require (
|
||||
require (
|
||||
berty.tech/go-libtor v1.0.385 // indirect
|
||||
github.com/ajg/form v1.5.1 // indirect
|
||||
github.com/akavel/rsrc v0.10.2 // indirect
|
||||
github.com/andybalholm/brotli v1.0.6 // indirect
|
||||
github.com/caddyserver/certmagic v0.20.0 // indirect
|
||||
github.com/cloudflare/circl v1.3.7 // indirect
|
||||
@@ -107,5 +106,3 @@ require (
|
||||
replace github.com/sagernet/sing-box => github.com/hiddify/hiddify-sing-box v1.7.9-0.20240206093618-6b04f360fe5a
|
||||
|
||||
replace github.com/sagernet/wireguard-go => github.com/hiddify/wireguard-go v0.0.0-20240125143346-481d18d77fe1
|
||||
|
||||
replace github.com/uoosef/wireguard-go => github.com/hiddify-com/wireguard-go v0.0.2-alpha.0.20240205205805-4eae577551e2
|
||||
|
||||
6
go.sum
6
go.sum
@@ -2,10 +2,10 @@ berty.tech/go-libtor v1.0.385 h1:RWK94C3hZj6Z2GdvePpHJLnWYobFr3bY/OdUJ5aoEXw=
|
||||
berty.tech/go-libtor v1.0.385/go.mod h1:9swOOQVb+kmvuAlsgWUK/4c52pm69AdbJsxLzk+fJEw=
|
||||
github.com/ajg/form v1.5.1 h1:t9c7v8JUKu/XxOGBU0yjNpaMloxGEJhUkqFRq0ibGeU=
|
||||
github.com/ajg/form v1.5.1/go.mod h1:uL1WgH+h2mgNtvBq0339dVnzXdBETtL2LeUXaIv25UY=
|
||||
github.com/akavel/rsrc v0.10.2 h1:Zxm8V5eI1hW4gGaYsJQUhxpjkENuG91ki8B4zCrvEsw=
|
||||
github.com/akavel/rsrc v0.10.2/go.mod h1:uLoCtb9J+EyAqh+26kdrTgmzRBFPGOolLWKpdxkKq+c=
|
||||
github.com/andybalholm/brotli v1.0.6 h1:Yf9fFpf49Zrxb9NlQaluyE92/+X7UVHlhMNJN2sxfOI=
|
||||
github.com/andybalholm/brotli v1.0.6/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig=
|
||||
github.com/bepass-org/wireguard-go v0.0.16-alpha h1:UfJxKUG6H6XphRsMjNzWWPMKN8bpHjqpR6+nLkvTIbg=
|
||||
github.com/bepass-org/wireguard-go v0.0.16-alpha/go.mod h1:NLNkw2Uf1G6ltkHZL48/v+vwBdiVsnRhk8ocM9R+b0Q=
|
||||
github.com/caddyserver/certmagic v0.20.0 h1:bTw7LcEZAh9ucYCRXyCpIrSAGplplI0vGYJ4BpCQ/Fc=
|
||||
github.com/caddyserver/certmagic v0.20.0/go.mod h1:N4sXgpICQUskEWpj7zVzvWD41p3NYacrNoZYiRM2jTg=
|
||||
github.com/cloudflare/circl v1.3.7 h1:qlCDlTPz2n9fu58M0Nh1J/JzcFpfgkFHHX3O35r5vcU=
|
||||
@@ -51,8 +51,6 @@ github.com/google/pprof v0.0.0-20231101202521-4ca4178f5c7a h1:fEBsGL/sjAuJrgah5X
|
||||
github.com/google/pprof v0.0.0-20231101202521-4ca4178f5c7a/go.mod h1:czg5+yv1E0ZGTi6S6vVK1mke0fV+FaUhNGcd6VRS9Ik=
|
||||
github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE=
|
||||
github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ=
|
||||
github.com/hiddify-com/wireguard-go v0.0.2-alpha.0.20240205205805-4eae577551e2 h1:yoQz+Bp6fqebC/w7KcPV++mLq6xxfbulHtdJGF3KZE4=
|
||||
github.com/hiddify-com/wireguard-go v0.0.2-alpha.0.20240205205805-4eae577551e2/go.mod h1:Cgjuqx41IFI/FquERk3i5DyAidsA3KD+rbdOWbY1HgY=
|
||||
github.com/hiddify/hiddify-sing-box v1.7.9-0.20240206093618-6b04f360fe5a h1:c09W2YBtDhAT+8qa3hdH86PpVGAI6vESrNg4ZwXa2U8=
|
||||
github.com/hiddify/hiddify-sing-box v1.7.9-0.20240206093618-6b04f360fe5a/go.mod h1:HaSsaDUdxYL0tYUPx45asbyH9dIIOUHUinQJuZbS5pE=
|
||||
github.com/hiddify/ray2sing v0.0.0-20240130210008-8975ff77e3cd h1:3fKPvAWXTMGY0Qsk6wjCamIeC4xbrOUShMY95G5AZN4=
|
||||
|
||||
Reference in New Issue
Block a user