Skip to content

Commit

Permalink
SvxReflector: Remove global AUTH_KEY variable
Browse files Browse the repository at this point in the history
  • Loading branch information
sm0svx committed Oct 21, 2017
1 parent 533428f commit 5e6dbcf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
12 changes: 0 additions & 12 deletions src/svxlink/reflector/Reflector.cpp
Expand Up @@ -190,18 +190,6 @@ bool Reflector::initialize(Async::Config &cfg)
udp_sock->dataReceived.connect(
mem_fun(*this, &Reflector::udpDatagramReceived));

if (!cfg.getValue("GLOBAL", "AUTH_KEY", m_auth_key) || m_auth_key.empty())
{
cerr << "*** ERROR: GLOBAL/AUTH_KEY must be specified\n";
return false;
}
if (m_auth_key == "Change this key now!")
{
cerr << "*** ERROR: You must change GLOBAL/AUTH_KEY from the "
"default value" << endl;
return false;
}

cfg.getValue("GLOBAL", "SQL_TIMEOUT", m_sql_timeout);
cfg.getValue("GLOBAL", "SQL_TIMEOUT_BLOCKTIME", m_sql_timeout_blocktime);
m_sql_timeout_blocktime = max(m_sql_timeout_blocktime, 1U);
Expand Down
1 change: 0 additions & 1 deletion src/svxlink/reflector/Reflector.h
Expand Up @@ -165,7 +165,6 @@ class Reflector : public sigc::trackable
FramedTcpServer* srv;
Async::UdpSocket* udp_sock;
ReflectorClientMap client_map;
std::string m_auth_key;
ReflectorClient* m_talker;
Async::Timer m_talker_timeout_timer;
struct timeval m_last_talker_timestamp;
Expand Down

0 comments on commit 5e6dbcf

Please sign in to comment.