fix: ws工具net资源属性命名

This commit is contained in:
TsMask
2024-10-11 09:54:08 +08:00
parent c1fa37731f
commit 6e8472d2e8

View File

@@ -6,8 +6,8 @@ import "github.com/shirou/gopsutil/v4/net"
type NetConnectData struct {
Type string `json:"type"`
Status string `json:"status"`
Laddr net.Addr `json:"localaddr"`
Raddr net.Addr `json:"remoteaddr"`
Laddr net.Addr `json:"localAddr"`
Raddr net.Addr `json:"remoteAddr"`
PID int32 `json:"pid"`
Name string `json:"name"`
}