mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-02 16:19:09 +02:00
Correct argument escaping of --name paramter
Previously, the "" were treated as part of the devicename. This lead to Airplay names which included the "". Instead, we must quote the whole argument, so that the name does not contain "".
This commit is contained in:
parent
0aed04f9b3
commit
c6cbc24163
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ AirplayStream::AirplayStream(PcmListener* pcmListener, boost::asio::io_context&
|
|||
logStderr_ = true;
|
||||
|
||||
string devicename = uri_.getQuery("devicename", "Snapcast");
|
||||
params_wo_port_ = "--name=\"" + devicename + "\" --output=stdout --use-stderr";
|
||||
params_wo_port_ = "\"--name=" + devicename + "\" --output=stdout --use-stderr";
|
||||
|
||||
port_ = cpt::stoul(uri_.getQuery("port", "5000"));
|
||||
setParamsAndPipePathFromPort();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue