1
0
Fork 0
mirror of https://gitlab.com/futo-org/fcast.git synced 2025-06-24 21:25:23 +00:00

Receivers: Fixed mdns advertisement compatibility issues due to null txt field

This commit is contained in:
Michael Hollister 2025-05-05 12:39:36 -05:00
parent 32e9467018
commit 0751556725

View file

@ -15,9 +15,11 @@ export class DiscoveryService {
const name = `FCast-${getComputerName()}`;
logger.info(`Discovery service started: ${name}`);
this.serviceTcp = mdns.createAdvertisement(mdns.tcp('_fcast'), 46899, { name: name });
// Note that txt field must be populated, otherwise certain mdns stacks have undefined behavior/issues
// when connecting to the receiver
this.serviceTcp = mdns.createAdvertisement(mdns.tcp('_fcast'), 46899, { name: name, txt: {} });
this.serviceTcp.start();
this.serviceWs = mdns.createAdvertisement(mdns.tcp('_fcast-ws'), 46898, { name: name });
this.serviceWs = mdns.createAdvertisement(mdns.tcp('_fcast-ws'), 46898, { name: name, txt: {} });
this.serviceWs.start();
}