manual refresh function

This commit is contained in:
William Harrell 2022-11-03 21:54:05 -04:00
parent 70e84c5840
commit cfc7b15211
9 changed files with 74 additions and 4 deletions

View file

@ -26,7 +26,7 @@ const CONTROL_PROTECTION_SESSION = "by_control_protection"
func New(sessions types.SessionManager, desktop types.DesktopManager, capture types.CaptureManager, webrtc types.WebRTCManager, conf *config.WebSocket) *WebSocketHandler {
logger := log.With().Str("module", "websocket").Logger()
state := state.New()
state := state.New(conf.FileTransfer, conf.UnprivFileTransfer, conf.FileTransferPath)
// if control protection is enabled
if conf.ControlProtection {