1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-15 15:53:55 +00:00
Commit Graph

149 Commits

Author SHA1 Message Date
Bryan Roe
52ff7ba04c 1. Updated user-sessions.consoleUid() to not try to parse 'from'. It just returns the uid of any user listed in 'who'. This fixes Fedora, but should still work with all the other distros.
2. Updated, so if it can't find an Xauthority, it propagates an error, asking if the user configured DM to use X. This makes it, so on something like Fedora, it pops up a more intuitive error, that the user can fix, rather than just a generic, XOpenDisplay() error.
2019-01-30 23:17:39 -08:00
Bryan Roe
60df8bbd56 Fixed bug, where _write didn't return a value. This is important, because of bugfix with Polyfill for stream, which accidentally ignored this return value 2019-01-30 21:30:08 -08:00
Bryan Roe
cef67a1c8e Updated, so if ignoreProxyFile is specified in db, it will not try to use a proxy 2019-01-30 13:03:37 -08:00
Bryan Roe
1f4f3185bd Updated JS WebRTC debug hooks 2019-01-29 22:41:35 -08:00
Bryan Roe
305f04ad2e Updated behavior, so if a websocket write occurs on a non microstack thread, and it needs to merge buffers, it will allocate off the heap instead of the stack, to prevent a stack overflow if a very large amount of data is passed in. 2019-01-29 17:14:44 -08:00
Bryan Roe
dfbe5bca50 Added proxy detection logic for MacOS 2019-01-29 14:44:20 -08:00
Bryan Roe
ba0c2f645e Updated behavior, so if a HECI descriptor has a read error, it will emit 'error' instead of 'end' MeshCentral_v0.2.7-b 2019-01-29 10:46:16 -08:00
Bryan Roe
0557787ceb Updated behavior of getJSModule so that the order of precedence matches the recent changes to require() 2019-01-29 00:37:29 -08:00
Bryan Roe
258c1396c7 Added proxy detection logic on windows 2019-01-28 15:57:11 -08:00
Bryan Roe
61de975f3a 1. Unified how JS modules can be integrated, by creating an ILibDuktape_Polyfills_JS_Init() method.
2. Updated behavior so when modules are queried, local filesystem takes precedence on search results
3. Updated 'promise' integration to use the new method above
4. Added 'win-registry' integration on windows, so it can be used by agentcore.c
2019-01-28 15:56:41 -08:00
Bryan Roe
f38ec1df08 Added 'isRoot' for Windows implementation, to match Linux and MacOS 2019-01-28 15:54:31 -08:00
Bryan Roe
a3780d8fa1 Added enumeration support 2019-01-28 12:04:46 -08:00
Bryan Roe
ba4028d2d6 1. fixed bug, where return value was set incorrectly when calling _write
2. updated behavior, so if unshift is called with zero length buffer, it is a no-op
2019-01-28 10:42:20 -08:00
Bryan Roe
559928de5b The following updates, fix KVM for openSUSE and other distros with similar behavior
1. Removed 'setDisplay()' because it doesn't work
2. Added more descriptive error message when XOpenDisplay fails
3. Added ability to set XAUTHORITY in the child process if it wasn't set, by finding how X was started
MeshCentral_v0.2.6-x
2019-01-24 11:19:33 -08:00
Bryan Roe
bf6e9ce1e0 test script 2019-01-24 07:54:48 -08:00
Bryan Roe
cf856b0d1d Added default value of ':0' if $DISPLAY is not set MeshCentral_v0.2.6-w 2019-01-23 18:42:42 -08:00
Bryan Roe
74d8bd9aac Fixed compiler warning 2019-01-23 17:50:18 -08:00
Bryan Roe
6c6c0ff9ab Updated, so if XOpenDisplay() fails, an error is propagated back up 2019-01-23 17:17:05 -08:00
Bryan Roe
14a65d4bca Updated LocalMacAddress check, so resetNodeId will only be determined if the list of local MACs contains something other than zeros. 2019-01-23 16:39:30 -08:00
Bryan Roe
d6500322b9 Updated, so double-click events are propagated from browser to agent. On MacOS, this is then used to simulate double-click, as Linux/Windows doesn't need to explicitly simulate double-click. 2019-01-23 15:54:40 -08:00
Bryan Roe
5c01a68c26 updated comments 2019-01-23 14:37:59 -08:00
Bryan Roe
00dd28b4a2 Merge branch 'master' of https://github.com/Ylianst/MeshAgent 2019-01-23 14:33:40 -08:00
Bryan Roe
97a2e5b12c Updated so compiles for MIPS correctly 2019-01-23 14:32:52 -08:00
Ylian Saint-Hilaire
ebbeb07c45 Added double click stub for MacOS. 2019-01-23 13:21:43 -08:00
Bryan Roe
3a0f519f54 Fixed bug, where if Duktape_GetContextGuidHex() returned non-NULL, an attempt to modify immutable memory was attempted 2019-01-23 11:37:42 -08:00
Bryan Roe
3b514cd526 fixed typo MeshCentral_v0.2.6-u 2019-01-22 17:05:44 -08:00
Bryan Roe
69947b9c8c Fixed bug where resolution was only sent on first KVM connection 2019-01-22 16:30:41 -08:00
Bryan Roe
84f9c14d5a Fixed bug, where if multiple KVM sessions are connected, only the first one had the resolution sent... 2019-01-22 16:28:59 -08:00
Bryan Roe
82fc208e8b Fixed valgrind issue 2019-01-22 16:28:36 -08:00
Bryan Roe
1b013abe2d Updated behavior so if agent update is disabled, it will send an agent hash of all zeros to the server, when asked for agent hash. This fixes a bug where the new version of the server only pushes a core, if the hash check succeeds. 2019-01-22 14:29:03 -08:00
Bryan Roe
2690fd13d9 Added File Transfer support 2019-01-21 23:26:24 -08:00
Bryan Roe
e3d6c048e3 Updated, so that options object passed to attachDebugger(), is passed to duktape-debugger via a global object in the debugger context 2019-01-21 18:19:52 -08:00
Bryan Roe
7baea32a67 Fixed linux issues 2019-01-21 12:36:59 -08:00
Bryan Roe
05a84e3b34 firat rev of bare bones core 2019-01-21 12:15:37 -08:00
Bryan Roe
7489e1b34d Updated license MeshCentral_v0.2.6-o 2019-01-19 00:16:12 -08:00
Bryan Roe
5fbd1588f5 updated license 2019-01-19 00:11:26 -08:00
Bryan Roe
2046a22e9a Added meshcore DelayStart feature 2019-01-18 22:46:12 -08:00
Bryan Roe
a627ae6db0 Fixed import/export bug caused by previous change to Get/GetBuffer 2019-01-18 22:45:51 -08:00
Bryan Roe
f36bd6f8e0 Added native Timeout helper 2019-01-18 22:45:11 -08:00
Bryan Roe
2d0e8d227f Updated endianess of AgentCapabilities 2019-01-18 19:22:24 -08:00
Bryan Roe
9351108e60 Fixed typo in macro 2019-01-18 17:03:13 -08:00
Bryan Roe
b33c9ee4b8 Updated Buffer.from(), to allow hex encodings to start with 0x 2019-01-18 16:20:03 -08:00
Bryan Roe
d64dfb5504 Fixed compiler warnings on some toolchains 2019-01-18 16:02:00 -08:00
Bryan Roe
694108d245 Moved pragma to satisfy some toolchains 2019-01-18 15:52:58 -08:00
Bryan Roe
f65a5935dd Fixed compiler warnings 2019-01-18 15:28:28 -08:00
Bryan Roe
e5600ea6b0 Added missing fseek 2019-01-18 14:58:13 -08:00
Bryan Roe
4f5d3bcfe4 Fixed file format to be consistent between 32/64 bit... Updated so it will auto update old format to new format 2019-01-18 14:26:16 -08:00
Bryan Roe
2366122d58 Fixed bug where clearing proxy setting, didn't clear all the settings 2019-01-17 22:59:27 -08:00
Bryan Roe
335ff51bfe Removed reference to unused files 2019-01-17 22:09:17 -08:00
Bryan Roe
4a26ff4df2 removed files that aren't used 2019-01-17 22:01:39 -08:00