mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralgw.git
synced 2025-10-28 17:32:26 +00:00
Improving RTTYS
This commit is contained in:
@@ -1 +1,26 @@
|
||||
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>Rttys</title><link href="/css/app.0e046291.css" rel="preload" as="style"><link href="/css/chunk-vendors.b221ddbd.css" rel="preload" as="style"><link href="/js/app.79bf330a.js" rel="preload" as="script"><link href="/js/chunk-vendors.7fd2577a.js" rel="preload" as="script"><link href="/css/chunk-vendors.b221ddbd.css" rel="stylesheet"><link href="/css/app.0e046291.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but Rttys doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.7fd2577a.js"></script><script src="/js/app.79bf330a.js"></script></body></html>
|
||||
<!DOCTYPE html>
|
||||
<html lang="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<title>RTTYs</title>
|
||||
<link href="/css/app.0e046291.css" rel="preload" as="style">
|
||||
<link href="/css/chunk-vendors.b221ddbd.css" rel="preload" as="style">
|
||||
<link href="/css/chunk-vendors.b221ddbd.css" rel="stylesheet">
|
||||
<link href="/css/app.0e046291.css" rel="stylesheet">
|
||||
<link href="/js/app.79bf330a.js" rel="preload" as="script">
|
||||
<link href="/js/chunk-vendors.7fd2577a.js" rel="preload" as="script">
|
||||
</head>
|
||||
<body>
|
||||
<noscript>
|
||||
<strong>We're sorry but Rttys doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
||||
</noscript>
|
||||
<div id="app"></div>
|
||||
<script src="/js/chunk-vendors.7fd2577a.js">
|
||||
</script><script src="/js/app.79bf330a.js">
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -130,7 +130,7 @@ namespace OpenWifi {
|
||||
Path = RTTYS_server()->UIAssets() + Path;
|
||||
}
|
||||
|
||||
std::cout << id << ": service path '" << Path << "'" << std::endl;
|
||||
std::cout << id << ": Serving path '" << Path << "'" << std::endl;
|
||||
|
||||
// simple test to block .. or ~ in path names.
|
||||
if(Path.find("../")!=std::string::npos) {
|
||||
|
||||
@@ -35,9 +35,9 @@ namespace OpenWifi {
|
||||
|
||||
RTTY_Device_ConnectionHandler::~RTTY_Device_ConnectionHandler()
|
||||
{
|
||||
socket_.close();
|
||||
reactor_.removeEventHandler(socket_, Poco::NObserver<RTTY_Device_ConnectionHandler, Poco::Net::ReadableNotification>(*this, &RTTY_Device_ConnectionHandler::onSocketReadable));
|
||||
reactor_.removeEventHandler(socket_, Poco::NObserver<RTTY_Device_ConnectionHandler, Poco::Net::ShutdownNotification>(*this, &RTTY_Device_ConnectionHandler::onSocketShutdown));
|
||||
socket_.close();
|
||||
if(!id_.empty()) {
|
||||
std::cout << conn_id_ << ": Device de-registering during connection" << std::endl;
|
||||
RTTYS_server()->DeRegister(id_, this);
|
||||
@@ -47,18 +47,6 @@ namespace OpenWifi {
|
||||
}
|
||||
}
|
||||
|
||||
std::string RTTY_Device_ConnectionHandler::SafeCopy( const u_char * buf, int MaxSize, int & NewPos) {
|
||||
std::string S;
|
||||
while(NewPos<MaxSize && buf[NewPos]!=0) {
|
||||
S += buf[NewPos++];
|
||||
}
|
||||
|
||||
if(buf[NewPos]==0)
|
||||
NewPos++;
|
||||
|
||||
return S;
|
||||
}
|
||||
|
||||
void RTTY_Device_ConnectionHandler::PrintBuf(const u_char * buf, int size) {
|
||||
|
||||
std::cout << "======================================" << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user