mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-12-15 22:02:29 +00:00
Don't try STUN for manually added PCs over VPNs
This commit is contained in:
parent
4ada59ba48
commit
d00c434ccc
1 changed files with 2 additions and 2 deletions
|
@ -767,9 +767,9 @@ private:
|
||||||
// Drop the lock before notifying
|
// Drop the lock before notifying
|
||||||
lock.unlock();
|
lock.unlock();
|
||||||
|
|
||||||
// If this wasn't added via mDNS but it is a RFC 1918 IPv4 address,
|
// If this wasn't added via mDNS but it is a RFC 1918 IPv4 address and not a VPN,
|
||||||
// go ahead and do the STUN request now to populate an external address.
|
// go ahead and do the STUN request now to populate an external address.
|
||||||
if (!m_Mdns && addressIsSiteLocalV4) {
|
if (!m_Mdns && addressIsSiteLocalV4 && !newComputer->isReachableOverVpn()) {
|
||||||
quint32 addr;
|
quint32 addr;
|
||||||
int err = LiFindExternalAddressIP4("stun.moonlight-stream.org", 3478, &addr);
|
int err = LiFindExternalAddressIP4("stun.moonlight-stream.org", 3478, &addr);
|
||||||
if (err == 0) {
|
if (err == 0) {
|
||||||
|
|
Loading…
Reference in a new issue