0.1.8-beta-4

This commit is contained in:
Robin Davies
2022-04-26 02:07:05 -04:00
parent 3db29505bb
commit c31bea9ecd
33 changed files with 886 additions and 572 deletions
+4 -9
View File
@@ -504,6 +504,7 @@ int main(int argc, char *argv[])
bool help = false;
bool error = false;
bool systemd = false;
bool testExtraDevice = false;
std::string portOption;
CommandLineParser parser;
@@ -511,6 +512,7 @@ int main(int argc, char *argv[])
parser.AddOption("--help", &help);
parser.AddOption("-systemd", &systemd);
parser.AddOption("-port", &portOption);
parser.AddOption("-test-extra-device", &testExtraDevice); // advertise two different devices (for testing multi-device connect)
try
{
@@ -700,17 +702,10 @@ int main(int argc, char *argv[])
server->AddRequestHandler(downloadIntercept);
{
// Publish DNS Service.
DeviceIdFile deviceIdFile;
deviceIdFile.Load();
AvahiService service;
service.Announce(
configuration.GetSocketServerPort(),deviceIdFile.deviceName,deviceIdFile.uuid,"pipedal");
server->RunInBackground(SIGUSR1);
model.UpdateDnsSd(); // now that the server is running, publish a DNS-SD announcement.
sem_wait(&signalSemaphore);
if (systemd)