mirror of https://github.com/jetkvm/kvm.git
Compare commits
6 Commits
e88108c8c4
...
c88691f85f
| Author | SHA1 | Date |
|---|---|---|
|
|
c88691f85f | |
|
|
6e1b84f39b | |
|
|
a741bbe7e3 | |
|
|
1f7083a023 | |
|
|
dc7791c245 | |
|
|
9affd248f3 |
|
|
@ -417,7 +417,7 @@ export default function WebRTCVideo({ hasConnectionIssues }: { hasConnectionIssu
|
||||||
});
|
});
|
||||||
|
|
||||||
if (isRelativeMouseMode) {
|
if (isRelativeMouseMode) {
|
||||||
videoElmRefValue.addEventListener("click",
|
containerRef.current?.addEventListener("click",
|
||||||
() => {
|
() => {
|
||||||
if (isPointerLockPossible && !isPointerLockActive && !document.pointerLockElement) {
|
if (isPointerLockPossible && !isPointerLockActive && !document.pointerLockElement) {
|
||||||
requestPointerLock();
|
requestPointerLock();
|
||||||
|
|
|
||||||
4
web.go
4
web.go
|
|
@ -814,7 +814,7 @@ func handleSendWOLMagicPacket(c *gin.Context) {
|
||||||
inputMacAddr := c.Param("mac-addr")
|
inputMacAddr := c.Param("mac-addr")
|
||||||
macAddr, err := net.ParseMAC(inputMacAddr)
|
macAddr, err := net.ParseMAC(inputMacAddr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Warn().Err(err).Str("sendWol", inputMacAddr).Msg("Invalid mac address provided")
|
logger.Warn().Err(err).Str("inputMacAddr", inputMacAddr).Msg("Invalid MAC address provided")
|
||||||
c.String(http.StatusBadRequest, "Invalid mac address provided")
|
c.String(http.StatusBadRequest, "Invalid mac address provided")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
@ -822,7 +822,7 @@ func handleSendWOLMagicPacket(c *gin.Context) {
|
||||||
macAddrString := macAddr.String()
|
macAddrString := macAddr.String()
|
||||||
err = rpcSendWOLMagicPacket(macAddrString)
|
err = rpcSendWOLMagicPacket(macAddrString)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Warn().Err(err).Str("sendWOL", macAddrString).Msg("Failed to send WOL magic packet")
|
logger.Warn().Err(err).Str("macAddrString", macAddrString).Msg("Failed to send WOL magic packet")
|
||||||
c.String(http.StatusInternalServerError, "Failed to send WOL to %s: %v", macAddrString, err)
|
c.String(http.StatusInternalServerError, "Failed to send WOL to %s: %v", macAddrString, err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue