mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
fix last merge
This commit is contained in:
parent
d658c4f8e1
commit
e58d7b27eb
@ -28,11 +28,7 @@ ProviderUdp::~ProviderUdp()
|
|||||||
_udpSocket->close();
|
_udpSocket->close();
|
||||||
}
|
}
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
bool ProviderUdp::setConfig(const Json::Value &deviceConfig, int defaultLatchTime, int defaultPort, std::string defaultHost)
|
bool ProviderUdp::setConfig(const Json::Value &deviceConfig, int defaultLatchTime, int defaultPort, std::string defaultHost)
|
||||||
=======
|
|
||||||
bool ProviderUdp::setConfig(const Json::Value &deviceConfig, int defaultPort, std::string defaultHost)
|
|
||||||
>>>>>>> ad785b9eba371bca0829b8dc7df80c30afdc052a
|
|
||||||
{
|
{
|
||||||
QString host = QString::fromStdString(deviceConfig.get("host",defaultHost).asString());
|
QString host = QString::fromStdString(deviceConfig.get("host",defaultHost).asString());
|
||||||
|
|
||||||
@ -52,11 +48,7 @@ bool ProviderUdp::setConfig(const Json::Value &deviceConfig, int defaultPort, st
|
|||||||
Debug( _log, "Successfully parsed %s as a hostname.", deviceConfig["host"].asString().c_str());
|
Debug( _log, "Successfully parsed %s as a hostname.", deviceConfig["host"].asString().c_str());
|
||||||
_address = info.addresses().first();
|
_address = info.addresses().first();
|
||||||
}
|
}
|
||||||
<<<<<<< HEAD
|
|
||||||
|
|
||||||
=======
|
|
||||||
|
|
||||||
>>>>>>> ad785b9eba371bca0829b8dc7df80c30afdc052a
|
|
||||||
_port = deviceConfig.get("port", defaultPort).asUInt();
|
_port = deviceConfig.get("port", defaultPort).asUInt();
|
||||||
if ( _port<=0 || _port > 65535)
|
if ( _port<=0 || _port > 65535)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user