mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 22:30:56 +03:00
add remote address to transfer and commands logs
This commit is contained in:
@@ -33,6 +33,9 @@ func (c *Connection) GetClientVersion() string {
|
||||
|
||||
// GetRemoteAddress return the connected client's address
|
||||
func (c *Connection) GetRemoteAddress() string {
|
||||
if c.RemoteAddr == nil {
|
||||
return ""
|
||||
}
|
||||
return c.RemoteAddr.String()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user