Simple tests for AuthKey option added

This commit is contained in:
maschinist 2018-08-25 17:22:12 +02:00
parent 7d9e321edb
commit a6836690e2

View file

@ -220,6 +220,13 @@ int CDAPNETGateway::run()
unsigned int dapnetPort = m_conf.getDAPNETPort();
std::string dapnetAuthKey = m_conf.getDAPNETAuthKey();
if (dapnetAuthKey.length() == 0 || dapnetAuthKey == "TOPSECRET") {
::LogError("AuthKey not set or invalid");
::LogFinalise();
return 1;
}
m_dapnetNetwork = new CDAPNETNetwork(dapnetAddress, dapnetPort, callsign, dapnetAuthKey, VERSION, debug);
ret = m_dapnetNetwork->open();
if (!ret) {