Remove Port directive from ini file
This commit is contained in:
@@ -65,13 +65,6 @@ int main(int argc, char** argv)
|
||||
close(STDERR_FILENO);
|
||||
}
|
||||
|
||||
int port;
|
||||
boost::optional<boost::property_tree::ptree&> presenceDetectionPort = pt.get_child_optional("PresenceDetection.Port");
|
||||
if (presenceDetectionPort)
|
||||
port = pt.get<int>("PresenceDetection.Port");
|
||||
else
|
||||
throw std::runtime_error("Port directive missing in ini file.");
|
||||
|
||||
std::string target;
|
||||
boost::optional<boost::property_tree::ptree&> presenceDetectionTarget = pt.get_child_optional("PresenceDetection.Target");
|
||||
if (presenceDetectionTarget)
|
||||
|
||||
Reference in New Issue
Block a user