diff --git a/src/RADSEC_server.h b/src/RADSEC_server.h index fb2d5f63..ab43be75 100644 --- a/src/RADSEC_server.h +++ b/src/RADSEC_server.h @@ -60,11 +60,7 @@ namespace OpenWifi { } else if ((Utils::Now() - LastStatus) > RadSecKeepAlive) { RADIUS::RadiusOutputPacket P(Server_.radsecSecret); P.MakeStatusMessage(); - poco_information(Logger_, "Keep-Alive message."); -// std::cout << Server_.radsecSecret << std::endl; -// RADIUS::RadiusPacket PP(P.Data(),P.Len()); -// PP.Log(std::cout); Socket_->sendBytes(P.Data(), P.Len()); LastStatus = Utils::Now(); } @@ -251,36 +247,24 @@ namespace OpenWifi { Poco::Net::SocketAddress Destination(Server_.ip, Server_.port); try { - DBGLINE poco_information(Logger_, "Attempting to connect"); - DBGLINE Socket_->connect(Destination, Poco::Timespan(20, 0)); - DBGLINE Socket_->completeHandshake(); - DBGLINE - DBGLINE if (!Server_.allowSelfSigned) { - DBGLINE Socket_->verifyPeerCertificate(); - DBGLINE } - DBGLINE if (Socket_->havePeerCertificate()) { - DBGLINE Peer_Cert_ = std::make_unique( Socket_->peerCertificate()); - DBGLINE } - DBGLINE Socket_->setBlocking(false); Socket_->setNoDelay(true); Socket_->setKeepAlive(true); Socket_->setReceiveTimeout(Poco::Timespan(1 * 60 * 60, 0)); - DBGLINE Reactor_.addEventHandler( *Socket_, Poco::NObserver( *this, &RADSEC_server::onData));