45 Commits

Author SHA1 Message Date
UUBulb
ea6f119e72
feat: read config from env (#104)
* feat: read config from env

* ci: skip some tests
2024-11-30 11:40:48 +08:00
UUBulb
af41e4d843
modularize monitor, reduce init usage (#81)
* kill process tree using syscall on windows & cleanup (#80)

* kill process tree using syscall on windows & cleanup

* use job api

* add error check for cmd.Start

* modularize monitor, reduce init usage

* replace slices with sort

* update gopsutil & other dependencies
2024-11-03 21:53:09 +08:00
UUBulb
0cba96bae1
gpu: support read usage of multiple cards on linux (#79) 2024-10-24 20:43:17 +08:00
UUBulb
0a890a2021
make edit and service flag subcommands (#77)
* make edit and service argument subcommands

* generate uuid if non-exist, use default report_delay or ip_report_period value if not specified
2024-10-23 22:34:59 +08:00
naiba
f0c2a7a766 refactor cmd arch & auth func 2024-10-20 22:54:48 +08:00
UUBulb
d212b98177
change tcping behavior, update icmp-ping library (#73)
* change tcping behavior, update icmp-ping library

* fix ci
2024-10-08 11:37:36 +08:00
UUBulb
62a5c7869d
ci: use matrix to reduce build time (#70)
* ci: use matrix to reduce build time

* chore: update gopsutil to v4.24.9
2024-10-01 14:25:02 +08:00
UUBulb
aad063f7dd
downgrade some dependencies to the compatible version (#69) 2024-09-25 11:15:56 +08:00
dependabot[bot]
22630bb665
chore(deps): bump github.com/ebitengine/purego from 0.7.1 to 0.8.0 (#68)
Bumps [github.com/ebitengine/purego](https://github.com/ebitengine/purego) from 0.7.1 to 0.8.0.
- [Release notes](https://github.com/ebitengine/purego/releases)
- [Commits](https://github.com/ebitengine/purego/compare/v0.7.1...v0.8.0)

---
updated-dependencies:
- dependency-name: github.com/ebitengine/purego
  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-09-24 20:13:24 +08:00
dependabot[bot]
a16fe8c2fb
chore(deps): bump github.com/jaypipes/ghw from 0.12.0 to 0.13.0 (#65)
Bumps [github.com/jaypipes/ghw](https://github.com/jaypipes/ghw) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/jaypipes/ghw/releases)
- [Commits](https://github.com/jaypipes/ghw/compare/v0.12.0...v0.13.0)

---
updated-dependencies:
- dependency-name: github.com/jaypipes/ghw
  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-09-16 20:52:44 +08:00
dependabot[bot]
1b02926c05
chore(deps): bump github.com/creack/pty from 1.1.21 to 1.1.23 (#66)
Bumps [github.com/creack/pty](https://github.com/creack/pty) from 1.1.21 to 1.1.23.
- [Release notes](https://github.com/creack/pty/releases)
- [Commits](https://github.com/creack/pty/compare/v1.1.21...v1.1.23)

---
updated-dependencies:
- dependency-name: github.com/creack/pty
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-16 20:52:33 +08:00
dependabot[bot]
45766ea0b3
chore(deps): bump golang.org/x/net from 0.26.0 to 0.29.0 (#63)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.26.0 to 0.29.0.
- [Commits](https://github.com/golang/net/compare/v0.26.0...v0.29.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-09-16 20:52:14 +08:00
dependabot[bot]
0b30233960
chore(deps): bump github.com/refraction-networking/utls (#62)
Bumps [github.com/refraction-networking/utls](https://github.com/refraction-networking/utls) from 1.6.1 to 1.6.7.
- [Release notes](https://github.com/refraction-networking/utls/releases)
- [Commits](https://github.com/refraction-networking/utls/compare/v1.6.1...v1.6.7)

---
updated-dependencies:
- dependency-name: github.com/refraction-networking/utls
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-16 20:52:00 +08:00
UUBulb
c8134a8b86
replace cloudflare-bpc with utls (#58)
* replace cloudflare-bpc with utls

* fix test

* ci: skip utls test
2024-08-28 23:21:25 +08:00
UUBulb
42187f2bf2
gpu/darwin: pure go implemention (#57) 2024-08-26 22:57:07 +08:00
naiba
47adcf103c fix: tszrz 不需要对 tunnel 进行 filter 2024-08-13 13:40:46 +08:00
naiba
f4d9db28a2 feat: WebSSH 上传下载文件 (by trzsz) 2024-08-13 00:30:18 +08:00
naiba
80ef923a38 feat: tcp/icmp ping 提前取 IP 2024-07-28 15:05:30 +08:00
naiba
55c4a770a1 chore: upgrade dependencies 2024-07-19 19:05:22 +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
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
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
naiba
6aae5d4936 chore: upgrade dependencies 2024-05-05 00:13:11 +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
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
naiba
a19ada8809 ♻️ 更换镜像地址并加以检查 2024-02-09 21:08:38 +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
naiba
793dafcd80 Update dependencies in go.mod and go.sum files 2023-12-01 20:03:30 +08:00
naiba
64689e2fff ⬆️ Upgrade dependencies 2023-11-01 19:05:35 +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
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
a4c7a5c541 ⬆️ upgrade dependencies 2023-09-02 00:05:44 +08:00
naiba
fb6c500958 使用自定义 DNS resolver 避免切换域名时不会自动获取新 IP
close #1
2023-06-30 00:36:47 +08:00
naiba
a48f62c0cf go mod tidy 2023-05-11 00:01:07 +08:00
naiba
fb83d0d303 init 2023-05-10 23:02:15 +08:00