Skip to content

Commit 351bfb0

Browse files
Rob Carrutherslundmar
authored andcommitted
refactor(bonjour): Fix typo & Refine browse default domain
1 parent 4155ce6 commit 351bfb0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bonjour.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ void browse_lxi_services(lxi_info_t *info, int timeout_ms)
140140

141141
for (lxi_service_t *s = lxi_services; s->broadcast_type != NULL; s++)
142142
{
143-
error = DNSServiceBrowse(&service, 0, 0, s->broadcast_type, "local.", browse_callback, info);
143+
error = DNSServiceBrowse(&service, 0, 0, s->broadcast_type, NULL, browse_callback, info);
144144
if (error != kDNSServiceErr_NoError)
145145
{
146146
fprintf(stderr, "DNSServiceBrowse() failed: %d\n", error);

test/search-mdns.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include <stdio.h>
22
#include <lxi.h>
33

4-
// Example - Search for LXI instruments using VXI-11 discovery
4+
// Example - Search for LXI instruments using mDNS discovery
55

66
static void service_callback(const char *address, const char *id, const char *service, int port)
77
{

0 commit comments

Comments
 (0)