Skip to content

Commit 45e6ba6

Browse files
committed
set hostname to agent process
1 parent 83b7c0f commit 45e6ba6

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

agent/http.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,12 @@ func (a *Agent) createAgentProcess(proc *hostProc) *types.AgentProcess {
9898
log.Debugf("Cmdline could not found for %d\n", proc.process.Pid)
9999
}
100100
return &types.AgentProcess{
101-
Laddr: types.IPPort{IP: proc.conn.Laddr.IP, Port: proc.conn.Laddr.Port},
102-
Status: proc.conn.Status,
103-
Pid: proc.conn.Pid,
104-
Name: name,
105-
CmdLine: cl,
101+
Laddr: types.IPPort{IP: proc.conn.Laddr.IP, Port: proc.conn.Laddr.Port},
102+
Status: proc.conn.Status,
103+
Pid: proc.conn.Pid,
104+
Name: name,
105+
CmdLine: cl,
106+
Hostname: a.Hostname,
106107
}
107108
}
108109

0 commit comments

Comments
 (0)