Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

enable force-always-relay option for address book and accessible devices

rustdesk68eaedfddc82
diff --git a/flutter/lib/common/widgets/peer_card.dart b/flutter/lib/common/widgets/peer_card.dart
index 367aa8685..8c4b019b2 100644
--- a/flutter/lib/common/widgets/peer_card.dart
+++ b/flutter/lib/common/widgets/peer_card.dart
@@ -1065,7 +1065,9 @@ class AddressBookPeerCard extends BasePeerCard {
menuItems.add(_tcpTunnelingAction(context));
}
// menuItems.add(await _openNewConnInOptAction(peer.id));
- // menuItems.add(await _forceAlwaysRelayAction(peer.id));
+ if (!isWeb) {
+ menuItems.add(await _forceAlwaysRelayAction(peer.id));
+ }
if (isWindows && peer.platform == kPeerPlatformWindows) {
menuItems.add(_rdpAction(context, peer.id));
}
@@ -1198,7 +1200,9 @@ class MyGroupPeerCard extends BasePeerCard {
menuItems.add(_tcpTunnelingAction(context));
}
// menuItems.add(await _openNewConnInOptAction(peer.id));
- // menuItems.add(await _forceAlwaysRelayAction(peer.id));
+ if (!isWeb) {
+ menuItems.add(await _forceAlwaysRelayAction(peer.id));
+ }
if (isWindows && peer.platform == kPeerPlatformWindows) {
menuItems.add(_rdpAction(context, peer.id));
}