Skip to content

Commit

Permalink
feat: update module name and actions
Browse files Browse the repository at this point in the history
  • Loading branch information
BaiMeow committed Sep 11, 2024
1 parent b3e6212 commit f65dd50
Show file tree
Hide file tree
Showing 18 changed files with 37 additions and 305 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@v6
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
Expand Down
10 changes: 5 additions & 5 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj

version: 1
version: 2

before:
hooks:
Expand All @@ -18,7 +18,7 @@ builds:
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X github.com/hdu-dn11/wg-quick-op/cmd.version={{.Version}}
- -s -w -X github.com/dn-11/wg-quick-op/cmd.version={{.Version}}
goos:
- linux
goarch:
Expand All @@ -35,7 +35,7 @@ builds:
env:
- CGO_ENABLED=0
ldflags:
- -X github.com/hdu-dn11/wg-quick-op/cmd.version={{.Version}}-debug
- -X github.com/dn-11/wg-quick-op/cmd.version={{.Version}}-debug
goos:
- linux
goarch:
Expand Down Expand Up @@ -112,7 +112,7 @@ upx:
compress: '9'

# Whether to try LZMA (slower).
lzma: true
lzma: false

# Whether to try all methods and filters (slow).
brute: true
brute: false
2 changes: 1 addition & 1 deletion cmd/bounce.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cmd

import (
"github.com/hdu-dn11/wg-quick-op/quick"
"github.com/dn-11/wg-quick-op/quick"
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/down.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cmd

import (
"github.com/hdu-dn11/wg-quick-op/quick"
"github.com/dn-11/wg-quick-op/quick"
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/install.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cmd

import (
"github.com/hdu-dn11/wg-quick-op/daemon"
"github.com/dn-11/wg-quick-op/daemon"

"github.com/spf13/cobra"
)
Expand Down
4 changes: 2 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cmd

import (
"github.com/hdu-dn11/wg-quick-op/conf"
"github.com/hdu-dn11/wg-quick-op/lib/dns"
"github.com/dn-11/wg-quick-op/conf"
"github.com/dn-11/wg-quick-op/lib/dns"
"github.com/rs/zerolog"
"os"

Expand Down
2 changes: 1 addition & 1 deletion cmd/service.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cmd

import (
"github.com/hdu-dn11/wg-quick-op/daemon"
"github.com/dn-11/wg-quick-op/daemon"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/sync.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cmd

import (
"github.com/hdu-dn11/wg-quick-op/quick"
"github.com/dn-11/wg-quick-op/quick"
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/uninstall.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cmd

import (
"github.com/hdu-dn11/wg-quick-op/daemon"
"github.com/dn-11/wg-quick-op/daemon"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/up.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cmd

import (
"github.com/hdu-dn11/wg-quick-op/quick"
"github.com/dn-11/wg-quick-op/quick"
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
)
Expand Down
8 changes: 4 additions & 4 deletions daemon/daemon.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package daemon

import (
"github.com/hdu-dn11/wg-quick-op/conf"
"github.com/hdu-dn11/wg-quick-op/lib/dns"
"github.com/hdu-dn11/wg-quick-op/quick"
"github.com/hdu-dn11/wg-quick-op/utils"
"github.com/dn-11/wg-quick-op/conf"
"github.com/dn-11/wg-quick-op/lib/dns"
"github.com/dn-11/wg-quick-op/quick"
"github.com/dn-11/wg-quick-op/utils"
"github.com/rs/zerolog/log"

"github.com/vishvananda/netlink"
Expand Down
2 changes: 1 addition & 1 deletion daemon/ddns.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package daemon

import (
"github.com/hdu-dn11/wg-quick-op/quick"
"github.com/dn-11/wg-quick-op/quick"
"github.com/rs/zerolog/log"
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
)
Expand Down
6 changes: 3 additions & 3 deletions daemon/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package daemon
import (
_ "embed"
"errors"
"github.com/hdu-dn11/wg-quick-op/conf"
"github.com/hdu-dn11/wg-quick-op/quick"
"github.com/hdu-dn11/wg-quick-op/utils"
"github.com/dn-11/wg-quick-op/conf"
"github.com/dn-11/wg-quick-op/quick"
"github.com/dn-11/wg-quick-op/utils"
"github.com/rs/zerolog/log"

"os"
Expand Down
42 changes: 2 additions & 40 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hdu-dn11/wg-quick-op
module github.com/dn-11/wg-quick-op

go 1.19
go 1.23.1

require (
github.com/fsnotify/fsnotify v1.7.0
Expand All @@ -15,59 +15,28 @@ require (
)

require (
github.com/BaiMeow/SocketMap v0.0.0-20231115093402-9501140f690e // indirect
github.com/DataDog/mmh3 v0.0.0-20210722141835-012dc69a9e49 // indirect
github.com/ReneKroon/ttlcache v1.6.0 // indirect
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect
github.com/coreos/go-iptables v0.7.0 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/denisbrodbeck/machineid v1.0.1 // indirect
github.com/dlclark/regexp2 v1.2.0 // indirect
github.com/glaslos/ssdeep v0.3.1 // indirect
github.com/gobwas/glob v0.2.3 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/gopacket v1.1.19 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/h2non/filetype v1.1.3 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/hpcloud/tail v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/josharian/native v1.1.0 // indirect
github.com/kataras/golog v0.0.10 // indirect
github.com/kataras/pio v0.0.2 // indirect
github.com/kr/fs v0.1.0 // indirect
github.com/lestrrat/go-file-rotatelogs v0.0.0-20180223000712-d3151e2a480f // indirect
github.com/lestrrat/go-strftime v0.0.0-20180220042222-ba3bf9c1d042 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mdlayher/genetlink v1.3.2 // indirect
github.com/mdlayher/netlink v1.7.2 // indirect
github.com/mdlayher/socket v0.5.1 // indirect
github.com/mfonda/simhash v0.0.0-20151007195837-79f94a1100d6 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pkg/sftp v1.13.6 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/sagikazarmark/locafero v0.6.0 // indirect
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
github.com/saintfish/chardet v0.0.0-20120816061221-3af4cd4741ca // indirect
github.com/samber/lo v1.38.1 // indirect
github.com/satori/go.uuid v1.2.0 // indirect
github.com/segmentio/ksuid v1.0.4 // indirect
github.com/sourcegraph/conc v0.3.0 // indirect
github.com/spf13/afero v1.11.0 // indirect
github.com/spf13/cast v1.7.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
github.com/tidwall/gjson v1.14.4 // indirect
github.com/tidwall/match v1.1.1 // indirect
github.com/tidwall/pretty v1.2.0 // indirect
github.com/twmb/murmur3 v1.1.6 // indirect
github.com/vishvananda/netns v0.0.4 // indirect
github.com/yaklang/yaklang v1.2.8 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/crypto v0.26.0 // indirect
golang.org/x/exp v0.0.0-20240808152545-0cdaa3abc0fa // indirect
Expand All @@ -77,13 +46,6 @@ require (
golang.org/x/text v0.17.0 // indirect
golang.org/x/tools v0.24.0 // indirect
golang.zx2c4.com/wireguard v0.0.0-20231211153847-12269c276173 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240314234333-6e1732d8331c // indirect
google.golang.org/grpc v1.62.1 // indirect
google.golang.org/protobuf v1.33.0 // indirect
gopkg.in/fatih/set.v0 v0.2.1 // indirect
gopkg.in/fsnotify.v1 v1.4.7 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit f65dd50

Please sign in to comment.