getTargetName returns a descriptive name for the target (VM name or node name).
(config *ProxyConfig)
| 114 | |
| 115 | // getTargetName returns a descriptive name for the target (VM name or node name). |
| 116 | func getTargetName(config *ProxyConfig) string { |
| 117 | if config.VMType == "node" { |
| 118 | return config.NodeName |
| 119 | } |
| 120 | |
| 121 | return fmt.Sprintf("VM-%d", config.VMID) |
| 122 | } |
| 123 | |
| 124 | // HandleWebSocketProxy handles incoming WebSocket connections from noVNC client |
| 125 | // and proxies them to the Proxmox VNC websocket endpoint. |
no outgoing calls
no test coverage detected