mirror of
https://github.com/g4klx/DAPNETGateway.git
synced 2026-08-26 12:32:45 -04:00
Simple tests for AuthKey option added
This commit is contained in:
parent
7d9e321edb
commit
a6836690e2
1 changed files with 7 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue