525 Commits

Author SHA1 Message Date
2f58c514bc fix: clear the previous DNS ID when switching configurations (#620) v5.0.0 2023-03-12 20:18:57 +08:00
01f5adcecf fix: reset a single ip cache (#619) 2023-03-12 20:17:32 +08:00
0dab67d161 feat: Force compare when update fails (#617) 2023-03-12 14:31:58 +08:00
9a159d9b7d fix: If no change with callback/godaddy/namecheap, don't send webhook (#616) 2023-03-12 14:17:52 +08:00
2c66814803 ci(test): upload artifact after build is success (#614) 2023-03-12 11:35:40 +08:00
31ce5f0648 新增namecheap支持 (#454)
* 新增namecheap支持

* feat: supports namecheap

---------

Co-authored-by: 紫东遥 <–1160899437@qq.com>
Co-authored-by: jeessy2 <6205259+jeessy2@users.noreply.github.com>
2023-03-12 11:20:04 +08:00
7d1016ec67 refactor: displayIndexDnsName (#613) 2023-03-12 10:14:45 +08:00
b5a33805d2 fix: the index start at 1 (#611)
* fix: typo

* fix: the index start at 1

* docs: README
2023-03-11 23:47:30 +08:00
ed100f1d80 deps: bump golang from 1.19 to 1.20 (#608) 2023-03-11 23:11:07 +08:00
34f0fa30b5 feat: github.com/jeessy2/ddns-go/v5 (#607) 2023-03-11 23:07:17 +08:00
2a6acd6fa2 fix: typo (#606) 2023-03-11 22:48:47 +08:00
fd81c3b406 feat: display the index DnsName (#605) 2023-03-11 22:33:24 +08:00
ca9808740a feat: 增加多服务商同时解析功能 (#598)
* 增加多服务商同时解析功能

* feat: 网页排版优化

* fix: 修改未读取到配置时前端的默认行为

* fix: 网页美化

* fix: 优化配置切换页面

* feat: 优化配置验证

* refactor: 序列化结构体数组,JS优化

* chore: IpCache参数优化,JS微调

* chore: JS变量优化

* feat: 移除保存刷新

* Optimize code

---------

Co-authored-by: jeessy2 <6205259+jeessy2@users.noreply.github.com>
2023-03-11 22:15:25 +08:00
51cce0dda5 Revert #579 (#604)
* fix: different `configFilePath` for normal and SYSTEM users

In Windows, the home directories for normal user and SYSTEM user are different. Add `-c` option to fix this issue.

* Revert #579

This reverts commit 8c4974a.
v4.5.9
2023-03-11 18:08:59 +08:00
f3e192433f chore: bootstrap source map error (#599) 2023-03-07 22:02:14 +08:00
2e27188eec fix(docker): add bash (#597) v4.5.8 2023-03-06 15:14:46 +08:00
f5d4453bfc fix: output stderr (#593)
https://pkg.go.dev/os/exec#Cmd.CombinedOutput
2023-03-05 21:23:13 +08:00
46c21f6710 chore: use Restricted Shell (#586)
https://www.gnu.org/software/bash/manual/html_node/The-Restricted-Shell.html
v4.5.7
2023-03-04 10:27:35 +08:00
3787629c25 chore(open_explorer): simplify func (#580)
https://gist.github.com/hyg/9c4afcd91fe24316cbf0
2023-03-02 19:14:10 +08:00
0a9e4554f6 docs: add parameter desp for ServerChan and optimize Webhook (#581)
* docs: add parameter `desp` for ServerChan

Add the parameter `desp` because the length limit of the ServerChan title is 32.

See: https://sct.ftqq.com/sendkey

* docs: optimize the description of `Requestbody`

* docs: optimize the config of webhook

docs: optimize the description of Requestbody again

docs: add POST for ServerChan

* docs: webhook

---------

Co-authored-by: jeessy2 <6205259+jeessy2@users.noreply.github.com>
2023-03-02 19:02:57 +08:00
8c4974a6a1 fix: add environment HOME to service and revert #576 and #577 (#579)
* fix: add environment `HOME` to service and revert #576 and "fix: If getting user home with error, don't display the logs (#577)"

This should really fix #575.

* fix(main.go): add config file path to the service only if it is not equal to the default config file path

* chore(main.go): update the description of the service
2023-02-28 11:12:59 +08:00
899512f03f fix: If getting user home with error, don't display the logs (#577) v4.5.6 2023-02-26 10:17:09 +08:00
0cc81f624a feat: If the configuration is empty and after two days, access to the web from the Internet is not allowed (#573)
* feat: If the configuration is empty and after two days, access to the web from the Internet is not allowed

* fix: show the ban logs
v4.5.5
2023-02-25 00:30:24 +08:00
1d3a6c6c74 feat: the password has been saved before saving the cmd (#572)
* feat: the password has been saved before saving the cmd

* fix: don't need the temp username/password
2023-02-25 00:00:13 +08:00
9dfe7cc87d docs: pull request template (#571) 2023-02-24 23:39:24 +08:00
2f329b630c docs: add wiki link to README.md/Web (#560) v4.5.4 2023-02-20 21:26:11 +08:00
32d9f1074f chore(CI): getting Go version from the go.mod file (#556)
See: https://github.com/actions/setup-go#getting-go-version-from-the-gomod-file
2023-02-15 20:06:13 +08:00
c6db63234a docs: add github release downloads and go version shields (#553)
* docs: add github release downloads and go version shields

Added `GitHub release downloads` and `Go version` Shields.

`Development environment` line has been removed due to the addition of the Go version Shield.

* docs: change github release downloads to total
2023-02-14 14:20:25 +08:00
27178417fb [ImgBot] Optimize images (#548)
/ddns-web.png -- 93.15kb -> 58.66kb (37.03%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
2023-02-11 18:09:52 +08:00
318ecccc27 docs: more webhook config (#544)
* docs: copy the issues with documentation labels to docs

* docs: fix fwalert wrong photo link

* docs: remove docs folder and add issues to README.md

* docs: remove typesetting changes

* docs: forgot to remove document

* docs: remove useless lines

* docs: more webhook config

---------

Co-authored-by: jeessy2 <6205259+jeessy2@users.noreply.github.com>
2023-02-11 16:52:08 +08:00
172ffc1172 fix: access the web not work from Internet (#546) v4.5.3 2023-02-10 23:28:21 +08:00
2b8294393b feat: create pr template (#540) 2023-02-09 15:57:58 +08:00
0eaa6935fa fix: use saved value when changing to net interface (#537) v4.5.2 2023-02-08 10:22:00 +08:00
e34fc5ef57 docs(issues): change template to forms and add template feature_request (#535)
* docs(issues): change template to forms and add template feature_request

* chore: delete bug_report.md
2023-02-08 10:06:49 +08:00
9dbb2ac981 fix: remove net interface child before append (#533) 2023-02-08 00:00:25 +08:00
a60c4d24af docs: add a url to get more script (#532) 2023-02-07 23:27:57 +08:00
94adb835d4 feat(docker-image.yml): automatic tagging and labeling (#528) 2023-02-07 20:44:54 +08:00
df3fae403a feat(dependabot): add docker (#525)
Keep Docker up to date.
2023-02-06 21:11:27 +08:00
593f17cc12 fix(make): build_docker_image failed (#522)
Looks like it fails after #498 because it requires buildkit, add `DOCKER_BUILDKIT=1` to enable buildkit to fix this

Also, add `--no-cache` to `apk add` to not cache the index locally, forgot to do that in #498.
2023-02-05 12:13:01 +08:00
4724613a11 feat: Update Docker Hub Description (#519)
* feat: Update Docker Hub Description
v4.5.1
2023-02-04 13:37:50 +08:00
bd7d129c28 fix: fetching config too early in service (#520) 2023-02-04 13:28:39 +08:00
6bd9ba84eb feat: more security for setting cmd (#515) v4.5.0 2023-02-03 13:35:15 +08:00
5908db369f fix: goreleaser deprecates --rm-dist and archives.replacements (#514)
* fix(goreleaser): --rm-dist deprecated

See: https://goreleaser.com/deprecations/#-rm-dist

* fix(goreleaser): archives.replacements deprecated

See: https://goreleaser.com/deprecations/#archivesreplacements
2023-02-03 12:28:40 +08:00
de34311193 build(docker): remove mirror setting (#513)
* remove mirror setting in docker build
2023-02-03 09:56:02 +08:00
04f0c7e70e feat: add support for getting IP addr by scripts (#511)
* feat: add support for getting IP addr by scripts

* fix: remove optional port for request.Host

* fix: correct inet type

* fix: add security requirement for using cmd method

* fix: add security info for using cmd method

* docs: add note about command line method

* fix: only allow to set config within 10 minutes when access via public network

* docs: add suggestion for enabling HTTPS connection
2023-02-02 23:57:44 +08:00
8f2b4b12aa feat: auto close stale issues and PRs (#509) 2023-02-02 11:06:55 +08:00
a4331d8dc4 feat: use GitHub Actions to test Go (#506) 2023-02-01 22:45:24 +08:00
770b2cf076 build(deps): bump docker/build-push-action from 3 to 4 (#503)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 3 to 4.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-31 16:11:45 +08:00
606b44a5ba feat: faster Docker multi-platform builds and shrink Go binaries (#498)
* feat(docker): faster multi-platform builds

See: https://www.docker.com/blog/faster-multi-platform-builds-dockerfile-cross-compilation-guide/

* feat(make): disable symbol table and DWARF generation

by adding -s and -w options to -ldflags

See: https://pkg.go.dev/cmd/link
2023-01-30 19:49:43 +08:00
3adfc85ea9 fix: ipv6 url in web (#487) v4.4.2 2023-01-12 20:26:02 +08:00