Skip to content

Conversation

stuqdog
Copy link
Member

@stuqdog stuqdog commented Aug 1, 2025

No description provided.

@stuqdog stuqdog requested a review from a team as a code owner August 1, 2025 17:30
@stuqdog stuqdog requested review from njooma and gabegottlob August 1, 2025 17:30
@stuqdog stuqdog changed the title (hotfix, gost) stop truncating mdns uri RSDK-11510 - stop truncating mdns uri Aug 1, 2025
@stuqdog stuqdog merged commit 283728c into viamrobotics:main Aug 1, 2025
4 checks passed
@stuqdog stuqdog deleted the hotfix-stop-truncating-mdns-uri branch August 1, 2025 18:25
@@ -219,8 +219,7 @@ Future<String> _searchMdns(String address) async {
} else if (event.type == BonsoirDiscoveryEventType.discoveryServiceResolved) {
final service = event.service! as ResolvedBonsoirService;
if (service.name == targetName && service.host != null) {
final host = service.host!.substring(0, service.host!.length - 1);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stuqdog I am VERY curious as to why we were doing this in the first place

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah good question! The service.host doesn't appear as an IP address on ios but as a human readable address, the operating theory is that it has a lingering . at the end of it that we wanted to strip. However, @Otterverse tested on ios as well and android and found that not stripping the trailing character allowed for successful connection on both ios and android. So I think this was a case of being over-cautious on iOS in a way that broke android.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants