fix: do not print rustdesk:// links in the uni-links handlers

A link can carry a password (`?password=`, or `rustdesk://password/<pw>`
on mobile), and print/debugPrint output stays in release builds. Found
in #17413.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JAxkkig1bcC5Xrr1uwX47b
This commit is contained in:
rustdeskandClaude Opus 5.5 committed 2026-12-04 20:17:05 +08:00
1 parent b41bfedbb1
commit 45bfda4d50
1 file changed
+2 -2
+2 -2
View File
@@ -2196,7 +2196,7 @@ Future<bool> initUniLinks() async {
// check cold boot
try {
final initialLink = await getInitialLink();
print("initialLink: $initialLink");
print("initialLink received: ${initialLink?.isNotEmpty == true}");
if (initialLink == null || initialLink.isEmpty) {
return false;
}
@@ -2223,7 +2223,7 @@ StreamSubscription? listenUniLinks({handleByFlutter = true}) {
}
final sub = uriLinkStream.listen((Uri? uri) {
debugPrint("A uri was received: $uri. handleByFlutter $handleByFlutter");
debugPrint("A uri was received. handleByFlutter $handleByFlutter");
if (uri != null) {
if (handleByFlutter) {
handleUriLink(uri: uri);