105 Commits

Author SHA1 Message Date
UUBulb
09c4ef1764
refactor(pty): switch to using interface (#34)
* refactor(pty): switch to using interface

for better flexibility (although may not be useful)

* chore: reduce error messages

* delete redundant messages
2024-07-07 10:18:59 +08:00
UUBulb
fb7b45527b
service: logging to syslog (#33)
* service: logging to syslog

* chore: update gopsutil to v4

* chore: move println() to the util package

* gpu: only return 0 on failure
2024-07-05 22:31:56 +08:00
UUBulb
532bca8867
Fix CPU counts error on Windows (#31) 2024-06-25 22:10:32 +08:00
UUBulb
fb86c89de7
fix: wrong IP value in some situations (#32) 2024-06-25 22:08:28 +08:00
UUBulb
81b774a7f0
fix: temperatureStat will stack up (#30) 2024-06-23 22:27:23 +08:00
naiba
505b7f2210 fix: goreleaser flag 2024-06-23 16:20:59 +08:00
UUBulb
804364e6c9
make atomicStoreFloat64 safe (#29) 2024-06-23 15:58:39 +08:00
Leon
136b3801c7
refactor: improve error handling for fetching sensor temperatures (#27) 2024-06-23 14:42:27 +08:00
UUBulb
338f0dabbe
feat: Add GPU inspection/monitoring support (#28) 2024-06-23 10:27:18 +08:00
Leon
968faca950
Add support for monitoring sensor temperatures (#21) 2024-06-01 19:11:54 +08:00
UUBulb
611ad8be20
Support more flags in the service command (#23)
fix for darwin
2024-05-31 21:38:45 +08:00
UUBulb
f882ca3498
Switch to ConPty on Windows 10 & support windows arm64 platform (#20) 2024-05-21 18:40:08 +08:00
UUBulb
060d13a759
Replace pflag with cobra, add service command (#17)
* Replace pflag with cobra, add service command

moved '-c' option to 'edit' command

* Restart after installation & add some friendly outputs

* Attempt to fix ci

* Update dependencies & revert gosec to 2.19.0

gosec 2.19.0 is the last version supports Go 1.20

* Remove gosec checks
2024-05-18 22:38:39 +08:00
UUBulb
833398cca0
Fix ret.CPU detection on various platforms (#16) 2024-05-12 16:49:21 +08:00
naiba
6aae5d4936 chore: upgrade dependencies 2024-05-05 00:13:11 +08:00
UUBulb
25ee86800c
fix virtualization detection (#15) 2024-05-05 00:06:50 +08:00
naiba
f57634fca0 chore: daocloud 镜像失效 2024-04-18 21:50:07 +08:00
naiba
2ae78030ec ⬆️ Update gopsutil 2024-04-06 11:40:30 +08:00
naiba
707da9c4cb Update contributors' avatars 2024-03-23 13:08:05 +08:00
naiba
e4c52105ef Update dependencies in go.mod and go.sum files 2024-03-23 13:06:31 +08:00
naiba
7e311c52ba Update go.mod to use Go 1.21 and updated dependencies 2024-03-01 10:51:07 +08:00
naiba
7f00caabb7 🚸 upgrade self-update 2024-02-28 23:44:09 +08:00
Darc Z
4bfb17df46
feat: make ip update period modifiable (#13)
* feat: make ip update period modifiable

* doc: change text lead to misunderstand
2024-02-24 21:07:59 +08:00
naiba
a19ada8809 ♻️ 更换镜像地址并加以检查 2024-02-09 21:08:38 +08:00
naiba
3d35db61f9
Update README.md [no ci] 2024-02-04 09:25:17 +08:00
笨蛋ovo
fc0f1f08b5
指定 go1.20.13 (#10) 2024-02-04 09:23:28 +08:00
naiba
af85ddd97e Revert "修复cpu核心数识别错误 (#7)"
This reverts commit 9abb5c0f72159c4913ad09ce211515f78cb1e5d9.
2024-01-10 09:34:56 +08:00
naiba
9abb5c0f72 修复cpu核心数识别错误 (#7)
* fix distinguish kvm host as guset

* Fix spelling errors

* Update .gitignore

* 修复cpu核心数读取错误

* 添加判断ci的长度
2024-01-05 15:58:43 +08:00
naiba
1342eaeb38 恢复对 Windows 7/8、Server 2008 and Server 2012 的支持 2023-12-26 09:47:12 +08:00
naiba
9b730168bf Update dependencies in go.mod file 2023-12-19 23:43:21 +08:00
Crazy
4c7faecf1b
修复识别运行kvm虚拟机的独服为虚拟机 (#6)
* fix distinguish kvm host as guset

* Fix spelling errors

* Update .gitignore

* update contributors[no ci]

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-19 23:35:42 +08:00
naiba
abf3a7150b Fix HTTP response body not being closed properly 2023-12-05 23:21:56 +08:00
naiba
793dafcd80 Update dependencies in go.mod and go.sum files 2023-12-01 20:03:30 +08:00
naiba
c2e7803ade fix codeql 2023-11-08 13:24:15 +08:00
naiba
64689e2fff ⬆️ Upgrade dependencies 2023-11-01 19:05:35 +08:00
naiba
0580609c6b update README.md 2023-10-27 13:32:51 +08:00
naiba
76402e127f 💩 refactor 2023-10-27 13:16:55 +08:00
zhangnew
d678f530c8
support HTTP/3 for Alt-Svc (#5)
* HttpGet support Alt-Svc

* add version params

* fix code review

* support http3 for Alt-Svc
2023-10-27 13:07:39 +08:00
卖女孩的小火柴
b2c076d261
Feature: Update dnsServer (#4) 2023-10-26 10:51:19 +08:00
naiba
b885bd8343 fix checkAltSvc check condition logic error 2023-10-17 08:50:23 +08:00
zhangnew
2b565e8f12
HttpGet support Alt-Svc (#3)
* HttpGet support Alt-Svc

* add version params

* fix code review
2023-10-16 19:42:58 +08:00
naiba
25a730a4a8 enable api.myip.la 2023-09-06 09:59:09 +08:00
naiba
a4c7a5c541 ⬆️ upgrade dependencies 2023-09-02 00:05:44 +08:00
naiba
892d83400d update 2023-06-30 11:57:52 +08:00
naiba
568ded927e update 2023-06-30 09:51:14 +08:00
naiba
f7a6981a8c 🗑️ 移除失效 Geo IP API 2023-06-30 00:44:10 +08:00
naiba
fb6c500958 使用自定义 DNS resolver 避免切换域名时不会自动获取新 IP
close #1
2023-06-30 00:36:47 +08:00
naiba
3e6cc035e0 update 2023-05-13 15:28:54 +08:00
naiba
a48f62c0cf go mod tidy 2023-05-11 00:01:07 +08:00
naiba
0c46ce57ab update 2023-05-10 23:36:51 +08:00