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

1049 Commits

Author SHA1 Message Date
Bryan Roe
545a176b7d Added #ifdef to fix compiler error on non windows platforms 2022-10-31 17:23:54 -07:00
Bryan Roe
0520e66dc6 Fixed bug where if ScriptContainer is GC, it did not unhook events, which could result in a crash if the event was dispatched after cleanup 2022-10-31 15:22:39 -07:00
Bryan Roe
061d636438 Fixed a bug, where if a dmi entry was empty, it prevented the other entries from getting decoded 2022-10-27 00:59:59 -07:00
Bryan Roe
236786bc42 Added ability to export JS modules from agent. 2022-10-20 22:27:35 -07:00
Bryan Roe
2be1bac351 Updated code-utils to be able to sync modules folder with expanded folder 2022-10-19 23:25:11 -07:00
Bryan Roe
e21557a5c2 Added code-utils, to be able to expand compressed/integrated JavaScript at runtime. Updated polyfills so that code-utils can easily extract segments. 2022-10-18 00:16:45 -07:00
Bryan Roe
b60391b1c3 Added version flag to readdirSync(), so can be patched easily on server side if necessary 2022-10-14 11:11:48 -07:00
Bryan Roe
62bcda48c9 1. Updated fs.readdirSync(), so when enumerating windir with a 32 bit agent on 64 bit windows, it will add 'sysnative' to the results
2. Added documentation for sysinfo
2022-10-14 01:10:45 -07:00
Bryan Roe
72de10d955 updated proxy-helper to support auto-proxy auto detect 2022-10-12 22:18:34 -07:00
Bryan Roe
b21c7c380e 1. Updated global-tunnel to always use the object cached by the module loader, fixing a bug where the native and JS instances didn't match
2. Updated proxy-helper to always end a global-tunnel before fetching the auto-proxy script, fixing a bug where auto-proxy couldn't be fetched correctly after autoproxy was configured
2022-09-21 00:58:21 -07:00
Bryan Roe
ce6f57af42 Fixed structure in identifiers and lib-finder so that objects get GC faster 2022-09-16 20:51:56 -07:00
Bryan Roe
e0044984e5 Added 'exstate' parameter that returns the windows service manager service state as the status code 2022-09-15 23:47:11 -07:00
Ylian Saint-Hilaire
8d86bcfa1c Minor fixes to -? help text. 2022-08-24 23:57:15 -07:00
Bryan Roe
4d1dc7a082 Updated Windows Installer to populate DisplayVersion in registry 2022-08-24 00:54:18 -07:00
Bryan Roe
de512f8ae1 Updated platform check to be 'linux' instead of not 'win32', fixing issues with BSD/macOS 2022-08-22 19:57:39 -07:00
Bryan Roe
b2e64e2147 Add explicit close to win-dispatcher
Add #ifdef exclusion for kvm-helper on macos
2022-08-22 09:46:12 -07:00
Bryan Roe
ad03c83c22 Fixed edge case with child-container, where if exit is called before child connects, could result in hung client, or stale server. 2022-08-21 15:33:01 -07:00
Bryan Roe
7905caa745 Fixed bug when user specified with quotes, causing failover from win-task to SCHTASKS. Also fixed referencing issue that caused delayed GC when using SCHTASKS 2022-08-21 10:54:41 -07:00
Bryan Roe
8b49af30be Backed out change that prevented a disconnect from propagating correctly. 2022-08-19 16:25:28 -07:00
Bryan Roe
cf0bf3cd59 Added variable check before dereference 2022-08-19 11:42:47 -07:00
Bryan Roe
cd60e2bdf9 Added memory check before dereference 2022-08-19 10:13:46 -07:00
Bryan Roe
36286d9e7d Updated WebSocketStream, so when you call end on the decoded stream, it will call end on the encoded stream. This will cause all the references to detach, allowing timely garbage collection. 2022-08-19 00:49:14 -07:00
Bryan Roe
905aafd9b1 Optimized references in HTTP WebSockets, and added more leaktest scenarios. 2022-08-18 01:39:59 -07:00
Bryan Roe
d4864597ae Optimized referencing within win-dispatcher to facilitate better garbage collection 2022-08-17 11:27:34 -07:00
Bryan Roe
6ba372d9b1 Updated to clear strong reference after an immediate triggers. 2022-08-16 13:23:30 -07:00
Bryan Roe
9d3f353ef5 Fixed issue with Zenity on FreeBSD 2022-08-12 16:54:41 -07:00
Bryan Roe
80b14d0163 Fixed MessagePump shutdown to wait in an alertable state, fixing a scenario where memory was leaked because an APC was never called, because the event thread was not alertable while it was waiting for the apc thread to shutdown. Also fixed an edge case crash that could occur when a dispatcher was shut down. 2022-08-09 20:33:20 -07:00
Bryan Roe
373b0b424d Fixed memory leaks with Metadata string on Windows IPC socket, and overlapped data structure 2022-08-09 15:15:46 -07:00
Bryan Roe
10c6aa295c Updated process-manager to support an options object, for search
Added win-utils to provide windows specific helper methods.
Added ability to set/query system taskbar autohide on Windows
2022-08-03 14:43:26 -07:00
Bryan Roe
7cffca38f5 Fixed Windows Handle leak 2022-07-25 09:42:49 -07:00
Bryan Roe
687f79d8d1 Updated documentation 2022-07-21 22:50:58 -07:00
Bryan Roe
fd93f62fe4 Added documentation to fs
Addressed minor issues from static analysis
2022-07-21 00:24:10 -07:00
Bryan Roe
06cc2ae7ea Restored line accidentally deleted 2022-07-19 23:33:44 -07:00
Bryan Roe
6a0f448c65 1. Fixed while() loop that could get stuck in loop due to 4 byte align issue
2. Added more inline documentation to fs
2022-07-19 22:52:25 -07:00
Bryan Roe
f1a2842d2b Fixed compiler warning 2022-07-18 23:22:58 -07:00
Bryan Roe
1c953c6006 Added documentation 2022-07-18 23:03:01 -07:00
Bryan Roe
8072454550 Added setting to enable/disable default Pin State 2022-07-15 20:23:28 -07:00
Bryan Roe
4e8aa9e782 Fixed bug with ScriptContainer JSON dispatcher, that caused the child to crash 2022-07-12 18:35:49 -07:00
Bryan Roe
f4880573f3 Fixed JSON error in Process Enumeration that can occur in some linux distros 2022-07-12 12:27:44 -07:00
Bryan Roe
6409183e72 Fixed bug where ctx dereference was placed before the validity check, instead of after 2022-07-02 10:42:54 -07:00
Bryan Roe
62195b6081 Added Digest Auth and Auth-Int support for server connections 2022-07-01 12:24:56 -07:00
Bryan Roe
25749eccaa Fixed bug that prevented digest/auth-int from correctly inserting entity body hash into the response. 2022-07-01 10:45:23 -07:00
Bryan Roe
963beb2b25 Removed debug console.log() 2022-07-01 03:03:08 -07:00
Bryan Roe
8f60da4435 Fixed parsing bug of digest authenticate headers when multiple qop options are present. Added support for auth-int on the client side. 2022-07-01 03:01:28 -07:00
Bryan Roe
fd59b52e89 Fixed macOS related issues with MeshCore tests.
Fixed bug in macOS clipboard where 0x0D0A was tacked on the end of the buffer
Fixed bug with customized agents, where MeshAgent.isService was returning the wrong value
2022-06-30 14:47:02 -07:00
Bryan Roe
b493da68e4 Fixed bug on Linux Agent, where a service stop, didn't gracefully shutdown the agent. Modified so that SIGTERM is caught, and causes the agent to gracefully shutdown. This change made it so the clipboard cleanup code could correctly run. 2022-06-30 01:23:29 -07:00
Bryan Roe
dcd8669746 Rev2 of SelfTest update
Added console.getInfoLevel() method
2022-06-29 14:11:51 -07:00
Bryan Roe
043848a0f9 Fixed bug in WebSocketStream partial fragment handler, where if fragment buffer size was 0, it would not realloc() correctly.
Also updated self-test to have inline documentation, as well as support for console debugging
2022-06-28 20:36:32 -07:00
Bryan Roe
b3e7943264 Updated agent-installer and update-test so that the self update test can be used with very old agents, to test updating to/from old releases. 2022-06-28 13:10:13 -07:00
Bryan Roe
b6349db37e Documented code for agent-installer 2022-06-27 14:50:43 -07:00