diff --git a/.gitignore b/.gitignore index 4c4959d..10ffda2 100644 --- a/.gitignore +++ b/.gitignore @@ -17,4 +17,5 @@ src/ pkg/ bin/ -gfwlist.txt \ No newline at end of file +gfwlist.txt +dist/ \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..b5b85b8 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,55 @@ +# This is an example goreleaser.yaml file with some sane defaults. +# Make sure to check the documentation at http://goreleaser.com +before: + hooks: +builds: + - env: + - CGO_ENABLED=0 + goos: + - windows + - darwin + - linux + - freebsd + goarch: + - amd64 + - 386 + - arm + - arm64 + goarm: + - 6 + - 7 + ignore: + - goos: windows + goarch: arm + - goos: windows + goarch: arm64 + - goos: darwin + goarch: arm + - goos: darwin + goarch: arm64 + - goos: freebsd + goarch: arm + - goos: freebsd + goarch: arm64 +archives: + - replacements: + darwin: Darwin + linux: Linux + windows: Windows + 386: i386 + amd64: x86_64 + format_overrides: + - goos: windows + format: zip + files: + - ts-dns*.toml +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ .Tag }}" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:' diff --git a/README.md b/README.md index c921412..43472e7 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ * 支持多hosts文件 + 手动指定hosts * 支持按手动后缀匹配/半智能污染检测/GFWList进行分组 * DNS查询支持socks5代理 +* 简单DNS缓存 ![](arch.png) @@ -37,6 +38,5 @@ listen = ":53" ## TODO -* GoReleaser * 智能DNS缓存 * 自动添加IPSET