fix: ws工具net资源属性命名
This commit is contained in:
@@ -6,8 +6,8 @@ import "github.com/shirou/gopsutil/v4/net"
|
|||||||
type NetConnectData struct {
|
type NetConnectData struct {
|
||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
Status string `json:"status"`
|
Status string `json:"status"`
|
||||||
Laddr net.Addr `json:"localaddr"`
|
Laddr net.Addr `json:"localAddr"`
|
||||||
Raddr net.Addr `json:"remoteaddr"`
|
Raddr net.Addr `json:"remoteAddr"`
|
||||||
PID int32 `json:"pid"`
|
PID int32 `json:"pid"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user