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:
parent
32e9467018
commit
0751556725
1 changed files with 4 additions and 2 deletions
|
@ -15,9 +15,11 @@ export class DiscoveryService {
|
||||||
const name = `FCast-${getComputerName()}`;
|
const name = `FCast-${getComputerName()}`;
|
||||||
logger.info(`Discovery service started: ${name}`);
|
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.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();
|
this.serviceWs.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue