Commit Graph

52 Commits

Author SHA1 Message Date
ed5278a0f8 fix: update password validation and improve login error messages (#1523)
* fix: update password validation and improve login error messages

* refactor: change variable declarations to constants for better clarity
2025-08-07 21:04:12 +08:00
d6ebbf4ff9 修复火山引擎的两个问题 (#1497)
* fix(traffic_route): 通过精确获取DNS记录解决找不到历史记录的问题

* fix(traffic_route): IP 未更新时,不要发送 Webhook

* fix(config): 修复日志输出格式,使用占位符输出匹配到的IPv6地址
2025-07-05 09:47:18 +08:00
771e180aa3 feat: Reduce password strength requirements (#1224) 2024-08-19 10:46:33 +08:00
bdeda6cebd chore: the time limit is set to 30 minutes (#1202) 2024-07-31 17:17:58 +08:00
ca3027b111 feat: add support for rename config (#1132)
* feat: add support for rename config

* fix(web): remove unnecessary margin for delete button
2024-05-29 14:12:50 +08:00
eda1050430 feat: reset password (#1119)
- Encrypt password using bcrypt
- Add reset password function
2024-05-18 22:39:00 -07:00
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
7c69aa1bf7 feat: gomod v5 to v6 & upgrade golang to 1.21 (#969) 2024-01-11 16:25:14 +08:00
f6bc8b4819 fix: Compatible with the previous "zh" language (#968) 2024-01-11 16:20:03 +08:00
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
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
857f2a6853 feat: Limit read http response size (#903) 2023-11-03 18:59:48 -07:00
89363a78d1 fix: no more Restricted Shell (#772) 2023-07-19 17:00:30 +08:00
412777b011 fix(config): print log when gettype is unknown (#719) 2023-06-02 22:20:55 +08:00
947ff9832d fix: If Bash does not exist, use sh (#654)
* fix: If Bash does not exist, use sh

https://gist.github.com/miguelmota/ed4ec562b8cd1781e7b20151b37de8a0
2023-03-30 20:21:29 +08:00
34f0fa30b5 feat: github.com/jeessy2/ddns-go/v5 (#607) 2023-03-11 23:07:17 +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
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
2023-03-04 10:27:35 +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
84cdb5d7d9 refactor: update dependency and use build-in function (#402) 2022-10-09 15:40:23 +08:00
0e6487d115 fix: 打印获取IP的错误信息 (#380) 2022-09-14 23:39:16 +08:00
d41d500a93 feat: 支持匹配第几个IPv6地址 (#379)
* fix: webhook模拟测试提示

* feat: 支持匹配第几个IPv6地址
2022-09-14 23:23:38 +08:00
d982b050ed build: correct the module path (#371)
* build: correct the module path

Now we are in v4.x, the `/v4` suffix should be added.

* docs: specify the module version
2022-08-31 20:12:48 +08:00
3e2bbde681 fix: use tcp6 when get ipv6 from api (#348) 2022-08-04 18:54:07 +08:00
11738d6c33 feat: Default HTTP Client (#346)
* feat: use http.DefaultTransport

* feat: Api use HTTP Client without NoProxy
2022-08-03 19:37:10 +08:00
9e9e216b8f 添加ipv6正则表达式匹配功能 (#227)
* 添加ipv6正则表达式功能
Co-authored-by: jeessy2 <6205259+jeessy2@users.noreply.github.com>
2022-04-08 22:48:51 +08:00
ea10caefdf feat: 支持多个接口获取ip (#221) 2022-04-03 23:12:50 +08:00
60472fc357 feat: 统一HttpClient (#152) 2021-12-08 23:58:14 +08:00
127cb3f251 fix: DisableKeepAlives (#151) 2021-12-08 17:50:44 +08:00
05cfbe7388 3次获取IP失败会触发Webhook (#137)
* opt: rename

* fix: 3次获取IP失败会触发Webhook
2021-11-14 19:28:39 +08:00
6527cbdedf fix: config lock 2021-11-14 00:02:50 +08:00
9e15189bcc feat: TTL (#93)
* feat: ttl web

* feat: dnspod ttl

* feat: ali ttl

* feat: cloudflare ttl

* feat: huawei ttl

* fix: 说明

* fix: 显示以前的ttl

* docs: ttl
2021-08-15 19:08:18 +08:00
9c146ac06d fix: 没有配置, 自动打开浏览器 2021-06-04 23:34:32 +08:00
5f52481a7c fix: add http timeout 2021-04-14 17:35:14 +08:00
4dfff5f467 NotAllowWanAccess (#38)
* NotAllowWanAccess

* Merge branch 'master' into NotAllowWanAccess
2021-02-22 11:11:16 +08:00
1f0e0b364e docs: use IPv4/IPv6 2021-01-19 12:25:54 +08:00
c4d1330341 fix: typo 2020-12-24 15:45:37 +08:00
cc67083fa8 feat: 通过网卡获取IP 2020-12-20 21:25:36 +08:00
e4c29a1490 优化请求接口失败后提示说明 2020-12-18 16:41:50 +08:00
5ca553c7cb refact: webhook 2020-10-20 17:16:20 +08:00
896066fb02 feat: support webhook 2020-10-19 17:13:42 +08:00
30dce5684a fix: remove err when success 2020-09-10 16:42:13 +08:00
5b45c230e5 fix: config 2020-09-10 16:36:16 +08:00
584eeb546a fix: cache err when error 2020-09-10 16:29:42 +08:00
54105d953d feat: protect your website with a password 2020-09-10 15:39:13 +08:00
f44cc525fb fix: typo 2020-09-01 10:41:41 +08:00
370f3d9cdd feat: support dnspod 2020-08-31 16:22:09 +08:00
90650c7840 Run Timer 2020-08-28 11:13:19 +08:00
414bd8779f using enable flag 2020-08-27 14:06:51 +08:00