MCPcopy Index your code
hub / github.com/PatchMon/PatchMon / isWindowsHost

Function isWindowsHost

server-source-code/internal/handler/rdp.go:345–352  ·  view source on GitHub ↗
(host *models.Host)

Source from the content-addressed store, hash-verified

343}
344
345func 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.
355func (h *RDPHandler) HandleRDPProxyMessage(apiID string, raw []byte) {

Callers 1

ServeCreateTicketMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected