(host *models.Host)
| 343 | } |
| 344 | |
| 345 | func isWindowsHost(host *models.Host) bool { |
| 346 | osType := host.OSType |
| 347 | expected := "" |
| 348 | if host.ExpectedPlatform != nil { |
| 349 | expected = *host.ExpectedPlatform |
| 350 | } |
| 351 | return strings.Contains(strings.ToLower(osType), "windows") || strings.Contains(strings.ToLower(expected), "windows") |
| 352 | } |
| 353 | |
| 354 | // HandleRDPProxyMessage forwards rdp_proxy_* messages from agent to the RDP proxy store. |
| 355 | func (h *RDPHandler) HandleRDPProxyMessage(apiID string, raw []byte) { |