18 Commits

Author SHA1 Message Date
naiba
80ef923a38 feat: tcp/icmp ping 提前取 IP 2024-07-28 15:05:30 +08:00
UUBulb
7ad3094cee
feat: use embed geoip database (#46) 2024-07-28 14:02:27 +08:00
UUBulb
3204095d63
chore: missing return (#45) 2024-07-24 23:17:39 +08:00
UUBulb
c0288971d8
chore: code style (#44)
* some code refactor

* service

* chore: code style

---------

Co-authored-by: naiba <hi@nai.ba>
2024-07-23 23:20:55 +08:00
UUBulb
0a6adea9ab
fix: add recovery option for windows service (#41) 2024-07-20 19:01:11 +08:00
naiba
f220134e5b HTTP 内网穿透 2024-07-14 19:41:13 +08:00
naiba
427c9b42fb Merge branch 'main' of github.com:nezhahq/agent 2024-07-14 12:48:17 +08:00
naiba
52f6cf5fdf feat: 去除 WebTerminal 的 websocket 依赖 2024-07-14 12:48:10 +08:00
UUBulb
1344fc3dd8
feat: self-updating using gitee (#39)
* feat: self-updating using gitee

* chore: rename

---------

Co-authored-by: naiba <hi@nai.ba>
2024-07-14 11:19:59 +08:00
UUBulb
fda3a52533
use --debug to replace --silent (#37)
* add --silent to service command

* ?

* use --debug to toggle the logging
2024-07-13 12:47:22 +08:00
UUBulb
3bf3f97767
feat: make logging and temperature monitoring optional (#35)
* feat: make logging and temperature monitoring optional

* chore: improve code style

* fix: import

---------

Co-authored-by: naiba <hi@nai.ba>
2024-07-10 23:58:19 +08:00
xykt
1bf702cfaa
Add --ipv6-countrycode runtime parameter to set the region flag using IPv6 by default (#36)
* Update main.go

Add --ipv6-countrycode runtime parameter to set the region flag using IPv6 by default.

* Update service.go

Add --ipv6-countrycode runtime parameter to set the region flag using IPv6 by default.

* Update myip.go

Add --ipv6-countrycode runtime parameter to set the region flag using IPv6 by default.

* chore: rename

---------

Co-authored-by: naiba <hi@nai.ba>
2024-07-10 23:29:35 +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
338f0dabbe
feat: Add GPU inspection/monitoring support (#28) 2024-06-23 10:27:18 +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