restore DialerAddr

This commit is contained in:
Jason
2019-08-12 12:51:40 +08:00
parent fc7ee875f7
commit b0284209f5
4 changed files with 5 additions and 1 deletions

View File

@@ -110,7 +110,8 @@ func (h *tcpHandler) Handle(localConn net.Conn, target *net.TCPAddr) error {
sess = &stats.Session{
ProcessName: process,
Network: target.Network(),
Network: localConn.LocalAddr().Network(),
DialerAddr: remoteConn.LocalAddr().String(),
ClientAddr: localConn.LocalAddr().String(),
TargetAddr: targetAddr,
UploadBytes: 0,