mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-09 09:16:11 +00:00
Print socket errors when sending WoL packets
This commit is contained in:
@@ -193,11 +193,17 @@ bool NvComputer::wake()
|
||||
// Send to all ports
|
||||
for (quint16 port : WOL_PORTS) {
|
||||
if (sock.writeDatagram(wolPayload, address, port)) {
|
||||
qInfo().nospace().noquote() << "Send WoL packet to " << name << " via " << address.toString() << ":" << port;
|
||||
qInfo().nospace().noquote() << "Sent WoL packet to " << name << " via " << address.toString() << ":" << port;
|
||||
success = true;
|
||||
}
|
||||
else {
|
||||
qWarning() << "Send failed:" << sock.error();
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
qWarning() << "Bind failed:" << sock.error();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user