change impl scanPorts template

This commit is contained in:
MaineK00n
2020-10-14 18:59:34 +09:00
parent 4bf62e2ada
commit 39f4fbaa2d
2 changed files with 61 additions and 3 deletions

View File

@@ -181,8 +181,9 @@ type AffectedProcess struct {
// ListenPorts has the result of parsing the port information to the address and port.
type ListenPorts struct {
Address string `json:"address"`
Port string `json:"port"`
Address string `json:"address"`
Port string `json:"port"`
OpenStatus bool `json:"openStatus"`
}
// NeedRestartProcess keep a processes information affected by software update