mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-29 18:33:05 +00:00
feat: add a message to the user that the session is recorded
Signed-off-by: Julian Mundhahs <julian.mundhahs@mailbox.org>
This commit is contained in:
parent
31ee9bb4a8
commit
c6593a2bcb
1 changed files with 3 additions and 0 deletions
|
@ -356,6 +356,9 @@ func (pol *ACLPolicy) generateSSHRules(
|
|||
recs = append(recs, netip.AddrPortFrom(rec.Addr(), 80))
|
||||
}
|
||||
}
|
||||
if len(recs) > 0 {
|
||||
action.Message = "# This session is being recorded.\n"
|
||||
}
|
||||
action.Recorders = recs
|
||||
|
||||
if sshACL.EnforceRecorder {
|
||||
|
|
Loading…
Reference in a new issue