Fixed connection problem, server relay crash.
This commit is contained in:
parent
51095271de
commit
36aa0bbba7
|
@ -126,7 +126,7 @@
|
||||||
<Compile Include="public\scripts\agent-desktop-0.0.2.js" />
|
<Compile Include="public\scripts\agent-desktop-0.0.2.js" />
|
||||||
<Compile Include="public\scripts\amt-desktop-0.0.2.js" />
|
<Compile Include="public\scripts\amt-desktop-0.0.2.js" />
|
||||||
<Compile Include="public\scripts\amt-ider-ws-0.0.1.js" />
|
<Compile Include="public\scripts\amt-ider-ws-0.0.1.js" />
|
||||||
<Compile Include="public\scripts\agent-redir-ws-0.1.0.js" />
|
<Compile Include="public\scripts\agent-redir-ws-0.1.1.js" />
|
||||||
<Compile Include="public\scripts\amt-redir-ws-0.1.0.js" />
|
<Compile Include="public\scripts\amt-redir-ws-0.1.0.js" />
|
||||||
<Compile Include="public\scripts\amt-script-0.2.0.js" />
|
<Compile Include="public\scripts\amt-script-0.2.0.js" />
|
||||||
<Compile Include="public\scripts\amt-setupbin-0.1.0.js" />
|
<Compile Include="public\scripts\amt-setupbin-0.1.0.js" />
|
||||||
|
|
|
@ -27,6 +27,9 @@ module.exports.CreateMeshRelay = function (parent, ws, req, domain, user, cookie
|
||||||
if (rcookie.ruserid != null) { obj.ruserid = rcookie.ruserid; }
|
if (rcookie.ruserid != null) { obj.ruserid = rcookie.ruserid; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check connection id
|
||||||
|
if (obj.id == null) { try { ws.close(); parent.parent.debug('relay', 'Relay: Connection with no id (' + cleanRemoteAddr(req.ip) + ')'); } catch (e) { console.log(e); } return; }
|
||||||
|
|
||||||
// If there is no authentication, drop this connection
|
// If there is no authentication, drop this connection
|
||||||
if ((obj.id.startsWith('meshmessenger/') == false) && (obj.user == null) && (obj.ruserid == null)) { try { ws.close(); parent.parent.debug('relay', 'Relay: Connection with no authentication (' + cleanRemoteAddr(req.ip) + ')'); } catch (e) { console.log(e); } return; }
|
if ((obj.id.startsWith('meshmessenger/') == false) && (obj.user == null) && (obj.ruserid == null)) { try { ws.close(); parent.parent.debug('relay', 'Relay: Connection with no authentication (' + cleanRemoteAddr(req.ip) + ')'); } catch (e) { console.log(e); } return; }
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "meshcentral",
|
"name": "meshcentral",
|
||||||
"version": "0.4.2-p",
|
"version": "0.4.2-q",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"Remote Management",
|
"Remote Management",
|
||||||
"Intel AMT",
|
"Intel AMT",
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<link rel="shortcut icon" type="image/x-icon" href="{{{domainurl}}}favicon.ico" />
|
<link rel="shortcut icon" type="image/x-icon" href="{{{domainurl}}}favicon.ico" />
|
||||||
<script type="text/javascript" src="scripts/common-0.0.1.js"></script>
|
<script type="text/javascript" src="scripts/common-0.0.1.js"></script>
|
||||||
<script type="text/javascript" src="scripts/meshcentral.js"></script>
|
<script type="text/javascript" src="scripts/meshcentral.js"></script>
|
||||||
<script type="text/javascript" src="scripts/agent-redir-ws-0.1.0.js"></script>
|
<script type="text/javascript" src="scripts/agent-redir-ws-0.1.1.js"></script>
|
||||||
<script type="text/javascript" src="scripts/agent-desktop-0.0.2.js"></script>
|
<script type="text/javascript" src="scripts/agent-desktop-0.0.2.js"></script>
|
||||||
<script type="text/javascript" src="scripts/amt-0.2.0.js"></script>
|
<script type="text/javascript" src="scripts/amt-0.2.0.js"></script>
|
||||||
<script type="text/javascript" src="scripts/amt-redir-ws-0.1.0.js"></script>
|
<script type="text/javascript" src="scripts/amt-redir-ws-0.1.0.js"></script>
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
<script type="text/javascript" src="scripts/zlib-crc32.js"></script>
|
<script type="text/javascript" src="scripts/zlib-crc32.js"></script>
|
||||||
<script type="text/javascript" src="scripts/amt-redir-ws-0.1.0.js"></script>
|
<script type="text/javascript" src="scripts/amt-redir-ws-0.1.0.js"></script>
|
||||||
<script type="text/javascript" src="scripts/amt-wsman-ws-0.2.0.js"></script>
|
<script type="text/javascript" src="scripts/amt-wsman-ws-0.2.0.js"></script>
|
||||||
<script type="text/javascript" src="scripts/agent-redir-ws-0.1.0.js"></script>
|
<script type="text/javascript" src="scripts/agent-redir-ws-0.1.1.js"></script>
|
||||||
<script type="text/javascript" src="scripts/agent-redir-rtc-0.1.0.js"></script>
|
<script type="text/javascript" src="scripts/agent-redir-rtc-0.1.0.js"></script>
|
||||||
<script type="text/javascript" src="scripts/agent-desktop-0.0.2.js"></script>
|
<script type="text/javascript" src="scripts/agent-desktop-0.0.2.js"></script>
|
||||||
<script type="text/javascript" src="scripts/qrcode.min.js"></script>
|
<script type="text/javascript" src="scripts/qrcode.min.js"></script>
|
||||||
|
|
Loading…
Reference in New Issue