Commit Graph

482 Commits

Author SHA1 Message Date
okrc
a83c60004f
Update messages.go (#1083) 2024-04-22 09:04:08 +08:00
dependabot[bot]
da880a787e
bump golang.org/x/net from 0.23.0 to 0.24.0 (#1074)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.23.0 to 0.24.0.
- [Commits](https://github.com/golang/net/compare/v0.23.0...v0.24.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-08 07:25:08 -07:00
WaterLemons2k
23a8b0401f
fix(goreleaser): add build for Android (#1076)
According to golang/go@58f6022, the `bad system call` bug on Termux should be fixed when GOOS is android.

Test passed on Termux.
2024-04-08 07:22:27 -07:00
dependabot[bot]
27541d1162
build(deps): bump golang.org/x/net from 0.22.0 to 0.23.0 (#1072) 2024-04-04 05:15:03 -07:00
jeessy2
8474a5a156
fix: when local dns error occurs try every dns (#1063) 2024-03-28 03:13:55 -07:00
jeessy2
89199cd18a
docs: Multi-IP (#1064) 2024-03-28 17:29:13 +08:00
jeessy2
e0fd3488b5
fix: rename DNSList to BackupDNS (#1058) 2024-03-26 14:43:53 +08:00
jeessy2
4623bb5d3c
refactor: Waiting for network connection when dns exception (#1057) 2024-03-26 14:30:35 +08:00
YangerStars
2699a612d7
增加dynadot的ip变化检测和一个请求参数 (#1055) 2024-03-25 10:27:39 +08:00
WaterLemons2k
ead4e1d87e
chore: remove unused params and unnecessary nil checks (#1052)
See:

- https://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/unusedparams
- https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/nilness
2024-03-22 04:19:49 -07:00
YangerStars
77caa37395
Add support for Dynadot. (#1050)
* Add support for Dynadot.
* Fix incorrect logging/printing of errors.
2024-03-22 15:41:09 +08:00
wongxy
997c05eca5
feat(dns): support vercel dns (#1049)
* feat(dns): support vercel dns

* fix: Add case-insensitive comparison for IP address

* fix(i18n): use correct message key
2024-03-22 10:35:47 +08:00
WaterLemons2k
4c11754afd
refactor(headers): support all types of line breaks (#1046)
Now it only works properly if the line break is `\r\n`. Using the `splitLines` function solves this problem.

Rewritten the function `checkParseHeaders` and renamed it to `extractHeaders` for better readability.
2024-03-18 06:38:21 -07:00
WaterLemons2k
23f39fb065
docs(domainsHelp): indicate when separated by a colon is needed (#1043)
* docs(domainsHelp): indicate when separated by a colon is needed

Right now, it only specifies that colons can be used to separate domains, but not in which cases.

* docs(domainsHelp): indicate when separated by a colon is needed

Right now, it only specifies that colons can be used to separate domains, but not in which cases.
2024-03-17 05:45:37 -07:00
WaterLemons2k
9aee04b587
fix(web): logging if no domain is entered (#1038)
* fix(web): IPv4/6 cannot be enabled without domains

Currently, if IPv4/6 is enabled but there is no domain, nothing happens. In this case, we should throw an error.

* fix: replace errors with logs

* fix: logging only if no domain is entered

* feat: logging index
2024-03-10 06:14:06 -07:00
WaterLemons2k
ae0f47f537
perf: check internet with DNS lookup (#1034)
DNS lookups are much cheaper than HTTP requests since we only need to check if the Internet is available.

See: https://stackoverflow.com/a/50058255
2024-03-07 05:31:33 -08:00
dependabot[bot]
ea853832b9
build(deps): bump golang.org/x/net from 0.21.0 to 0.22.0 (#1031)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.21.0 to 0.22.0.
- [Commits](https://github.com/golang/net/compare/v0.21.0...v0.22.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-05 04:26:00 -08:00
jeessy2
52ef2b7fbf
fix: the url of ipv4 (#1024) 2024-02-19 16:52:08 +08:00
dependabot[bot]
eec65a2b6f
build(deps): bump golang.org/x/net from 0.20.0 to 0.21.0 (#1010)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.20.0 to 0.21.0.
- [Commits](https://github.com/golang/net/compare/v0.20.0...v0.21.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-19 13:35:58 +08:00
jeessy2
6410dad8a2
fix: The select is not working properly (#1006) 2024-02-02 12:39:07 +08:00
dependabot[bot]
dac27c0613
build(deps): bump peter-evans/dockerhub-description from 3 to 4 (#997)
Bumps [peter-evans/dockerhub-description](https://github.com/peter-evans/dockerhub-description) from 3 to 4.
- [Release notes](https://github.com/peter-evans/dockerhub-description/releases)
- [Commits](https://github.com/peter-evans/dockerhub-description/compare/v3...v4)

---
updated-dependencies:
- dependency-name: peter-evans/dockerhub-description
  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>
2024-01-30 03:11:01 -08:00
PairZhu
7befe6e7da
refactor: 重构前端代码 (#988)
* refactor: 重构前端代码

几乎完全重构前端js代码
小幅度重构后端代码(主要为了适配前端)

* fix: 修复主题色无法自适应的bug

还原了主题色修改函数的write参数,去除该参数会导致自适应修改主题时也会写入localStorage

* feat: 自动修改标签的for属性

自动修改”获取 IP 方式“标签的for属性,保证其始终指向当前可编辑的元素

* refactor: 去除JQuery

* refactor: 按业务划分代码

* fix: 对空值兼容

* fix: 统一html命名

* feat: 默认选择最后一个配置

* fix: 删除冗余代码

* fix: Update writing.html
2024-01-22 04:34:46 -08:00
xu_zh
fe9f437d9b
feat(cloudflare): support comment param (#980)
* feat(cloudflare): support `comment` param

* style: apply suggestion

Co-authored-by: WaterLemons2k <62788816+WaterLemons2k@users.noreply.github.com>

* style: Apply suggestions from code review

Co-authored-by: WaterLemons2k <62788816+WaterLemons2k@users.noreply.github.com>

---------

Co-authored-by: WaterLemons2k <62788816+WaterLemons2k@users.noreply.github.com>
2024-01-14 04:29:12 -08:00
jeessy2
20f1b2963f
revert: golang 1.20 (#977) 2024-01-12 05:15:58 -08:00
jeessy2
68f8b51493
docs: Make docs more beautiful (#975) 2024-01-12 13:37:31 +08:00
WaterLemons2k
01d3f4ddbc
fix(web): correctly display new logs when the same log appear multiple times (#974)
* fix(web): correctly display new logs when old log appear multiple times

* style(html): format with Prettier
2024-01-12 12:01:04 +08:00
jeessy2
1a3cd4e8b4
fix: display the error logs first (#973) 2024-01-12 10:59:36 +08:00
jeessy2
1a443b7ecc
fix: unique id (#971) 2024-01-11 02:34:30 -08:00
jeessy2
826f7a01e8
feat: Change the default language for self-update to English (#970) 2024-01-11 02:08:25 -08:00
jeessy2
7c69aa1bf7
feat: gomod v5 to v6 & upgrade golang to 1.21 (#969) 2024-01-11 16:25:14 +08:00
jeessy2
f6bc8b4819
fix: Compatible with the previous "zh" language (#968) 2024-01-11 16:20:03 +08:00
jeessy2
eec98404fe
feat: support english (#967)
* feat: init the i18n

* fix: porkbun

* refactor: http_util GetHTTPResponse

* fix: save

* fix: add more i18n

* feat: i18n at writing.html

* feat: README EN

* fix: default api

* fix: pic
2024-01-11 15:52:53 +08:00
jeessy2
8b508c6f0a
feat: Reduce password strength verification when using on the intranet (#966) 2024-01-10 14:13:39 +08:00
dependabot[bot]
76c0becb4c
build(deps): bump golang.org/x/net from 0.19.0 to 0.20.0 (#965)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.19.0 to 0.20.0.
- [Commits](https://github.com/golang/net/compare/v0.19.0...v0.20.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-09 16:25:29 +08:00
buffge
f475144f0f
opt IsPrivateNetwork func (#962)
for k8s .cluster.local
2024-01-06 20:22:28 -08:00
WaterLemons2k
1576b7bfd8
refactor(domains): use publicsuffix to parse (#952)
* refactor(domains): use publicsuffix to parse

* fix: incorrect sub domain when sub domain and root domain are the same
2023-12-23 03:34:52 -08:00
jeessy2
e2605ff9c2
fix: example for eu.org (#950) 2023-12-22 16:32:58 +08:00
Intza
afb8c71c03
add eu.org subdomain (#920)
* add eu.org subdomain

* better explain

* fix: prettier again

* ddns:cn.eu.org -> subdomain:cn.eu.org

---------

Co-authored-by: jeessy2 <6205259+jeessy2@users.noreply.github.com>
2023-12-22 12:43:14 +08:00
jeessy2
78cef13060
feat: remove ivaquero/chinese/ddns-go (#943) 2023-12-19 11:00:31 +08:00
jeessy2
a36c4c1f47
feat: support for custom dns port (#942) 2023-12-19 10:34:54 +08:00
jeessy2
ebf78eef87
chore: upgrade dependencies (#941) 2023-12-19 10:20:54 +08:00
dependabot[bot]
4dfcef96cb
build(deps): bump actions/upload-artifact from 3 to 4 (#939)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  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-12-15 16:50:40 +08:00
dependabot[bot]
0d4656a34c
build(deps): bump actions/setup-go from 4 to 5 (#930)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4 to 5.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-go
  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-12-09 04:52:27 -08:00
dependabot[bot]
4b59013c3c
build(deps): bump actions/stale from 8 to 9 (#932)
Bumps [actions/stale](https://github.com/actions/stale) from 8 to 9.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v8...v9)

---
updated-dependencies:
- dependency-name: actions/stale
  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-12-09 04:51:32 -08:00
Yulan Wei
19c4ce43f7
build: add curl&grep (#906) 2023-11-03 22:14:24 -07:00
jeessy2
28799ceb8e
fix: Ensure that access from the internet is not possible when login information is not filled in (#904) 2023-11-03 19:23:12 -07:00
jeessy2
857f2a6853
feat: Limit read http response size (#903) 2023-11-03 18:59:48 -07:00
jeessy2
b0c050ca44
feat: supports restart ddns-go in service (#896) 2023-10-27 13:52:50 +08:00
jeessy2
4c8cf07ecd
chore: upgrade dependencies (#880) 2023-10-10 17:06:50 +08:00
jeessy2
0b89b70363
feat: The webhook is only triggered once after the third failure (#879)
* feat: The webhook is only triggered once after the third failure
2023-10-10 16:59:15 +08:00