- 新增 webhttp 包: Router 最小路由接口(5 动词) + ServeMuxRouter 适配器 + WriteJSON 统一响应 - file/shell/process 三个被控能力包改以标准库 handler 形态注册, 不再绑死 gin - 由此 gin 及其连带重依赖(quic-go/http3、mongo bson、ugorji codec、goccy、validator)退出被控端二进制 - shell: recDir 死参数修复——原实现硬编码 ./rec, 传入的录制目录不生效; 现录制写入与记录列表同源 - shell: 终端创建失败由 panic 改为记日志后关连接(net/http 按连接兜底恢复, 不再依赖框架 Recovery) - file: 上传落盘不再沿用 SaveUploadedFile 的 MkdirAll+Chmod(Windows 盘根 Chmod 报参数不正确), 保留 MkdirAll 去掉 Chmod - 消费方: remote-client 纯 ServeMux 承载; remote-service 保留 gin 栈经 gin.WrapH 桥接(middle 链照常生效) 破坏性变更: RegisterRouters* 形参 gin.RouterGroup → webhttp.Router, 升级 tag v0.5.0
37 lines
1.3 KiB
AMPL
37 lines
1.3 KiB
AMPL
module git.zeroonesoft.cn/golib/remote-core
|
|
|
|
go 1.26.0
|
|
|
|
require (
|
|
github.com/KarpelesLab/vncpasswd v1.0.1
|
|
github.com/gorilla/websocket v1.5.3
|
|
github.com/jaypipes/ghw v0.13.0
|
|
github.com/kardianos/service v1.2.2
|
|
github.com/runletapp/go-console v0.0.0-20211204140000-27323a28410a
|
|
github.com/shirou/gopsutil/v3 v3.24.5
|
|
github.com/sirupsen/logrus v1.10.2
|
|
github.com/yusufpapurcu/wmi v1.2.4
|
|
golang.org/x/sys v0.48.0
|
|
)
|
|
|
|
require (
|
|
github.com/StackExchange/wmi v1.2.1 // indirect
|
|
github.com/creack/pty v1.1.17 // indirect
|
|
github.com/go-ole/go-ole v1.2.6 // indirect
|
|
github.com/google/go-cmp v0.7.0 // indirect
|
|
github.com/iamacarpet/go-winpty v1.0.2 // indirect
|
|
github.com/jaypipes/pcidb v1.0.1 // indirect
|
|
github.com/kr/pretty v0.3.1 // indirect
|
|
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
|
|
github.com/mitchellh/go-homedir v1.1.0 // indirect
|
|
github.com/pkg/errors v0.9.1 // indirect
|
|
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
|
|
github.com/rogpeppe/go-internal v1.10.0 // indirect
|
|
github.com/shoenig/go-m1cpu v0.1.6 // indirect
|
|
github.com/tklauser/go-sysconf v0.3.12 // indirect
|
|
github.com/tklauser/numcpus v0.6.1 // indirect
|
|
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
|
|
gopkg.in/yaml.v3 v3.0.1 // indirect
|
|
howett.net/plist v1.0.0 // indirect
|
|
)
|