mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 06:01:12 +00:00
Log an error if STUN fails
This commit is contained in:
@@ -579,9 +579,13 @@ private:
|
|||||||
|
|
||||||
// Get the WAN IP address using STUN if we're on mDNS
|
// Get the WAN IP address using STUN if we're on mDNS
|
||||||
quint32 addr;
|
quint32 addr;
|
||||||
if (LiFindExternalAddressIP4("stun.stunprotocol.org", 3478, &addr) == 0) {
|
int err = LiFindExternalAddressIP4("stun.stunprotocol.org", 3478, &addr);
|
||||||
|
if (err == 0) {
|
||||||
newComputer->remoteAddress = QHostAddress(qFromBigEndian(addr)).toString();
|
newComputer->remoteAddress = QHostAddress(qFromBigEndian(addr)).toString();
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
qWarning() << "STUN failed to get WAN address:" << err;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
newComputer->manualAddress = m_Address;
|
newComputer->manualAddress = m_Address;
|
||||||
|
|||||||
Reference in New Issue
Block a user