1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-06 00:13:33 +00:00
Commit Graph

152 Commits

Author SHA1 Message Date
Bryan Roe
d774dbe0e4 Fixed bug where if more than one XAUTHORITY was specified, the correct one wasn't always chosen 2019-03-11 18:00:37 -07:00
Bryan Roe
780ef826c3 Added 'isService' property to MeshAgent object 2019-03-06 16:40:05 -08:00
Bryan Roe
c8c366ff5a Fixed compiler warning 2019-03-04 18:22:51 -08:00
Bryan Roe
8a923d57c9 1. Added plumbing for a Recovery agentcore
2. Added service control features for linux Service Manager
2019-03-03 22:04:21 -08:00
Bryan Roe
014cabfe79 Unverified fix for localmode multicast 2019-02-28 19:21:44 -08:00
Bryan Roe
a3e3e22528 Updated behavior, so if Windows Service is run in console mode, it will write meta data to HKEY_CURRENT_USER instead of HKEY_LOCAL_MACHINE 2019-02-25 23:14:50 -08:00
Bryan Roe
d12afc14a6 1. Fixed Service Detection on SystemD, and changed to use auto-restart instead of systemctrl restart, to remove dependency on restart=always 2019-02-21 08:15:32 -08:00
Bryan Roe
6bd4b027f5 Updated Self-Update, so that upstart is correctly used on upstart platforms 2019-02-20 17:26:30 -08:00
Bryan Roe
9ba3fbf4a1 Updated, so on linux, if env variable for proxy isn't set, it'll check /etc/environment to see if proxy is set. 2019-02-19 13:52:32 -08:00
Bryan Roe
e370491f98 Fixed compiler warning 2019-02-19 11:02:23 -08:00
Bryan Roe
5da959c16a 1. Added metadata to _GenericMarshal
2. Added BootStrapCore functionality
2019-02-18 21:45:58 -08:00
Bryan Roe
f6eed29c31 Modified behavior on Windows to match that on Linux... If the db is wiped, new certs will be generated.
Also updated the Mesh Agent Service Installer on windows, so that the db is wiped on install.
2019-02-15 15:02:42 -08:00
Bryan Roe
c4a56475fa Fixed bug in Url swap for bad migration 2019-02-14 17:09:52 -08:00
Bryan Roe
09eac9f968 Added fix, to correct the server uri obtained from Meshcentral.com migration 2019-02-14 16:07:36 -08:00
Bryan Roe
b9af163039 Added ability to log control channel messages 2019-02-14 14:03:33 -08:00
Bryan Roe
ea62661a2d Added ability to specify a JS Debugger Port in the db 2019-02-12 16:54:34 -08:00
Bryan Roe
09a2c17104 Changed UINT_PTR to uintptr_t 2019-02-12 14:15:28 -08:00
Bryan Roe
995c4015b0 Added functionality so if 'webSocketMaskOverride' is specified in the db, the optimization to disable masking for TLS protected websockets is disabled 2019-02-12 13:43:42 -08:00
Bryan Roe
2096619903 Enable Jumbo Support on Windows KVM 2019-02-04 17:10:37 -08:00
Bryan Roe
1b5a6d0bc6 Updated selfupdate to use fork/execv instead of command
Updated SelfUpdate logging
Added SelfUpdate debugging helpers
2019-02-01 17:22:33 -08:00
Bryan Roe
bd16538a8e Fixed compiler warnings on MacOS 2019-02-01 01:13:07 -08:00
Bryan Roe
5995742cef Added db key to log update messages to aid in debugging update failures. 2019-01-31 14:40:52 -08:00
Bryan Roe
12a7e3e4a0 fixed misspelling in message 2019-01-30 23:20:37 -08:00
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
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
dfbe5bca50 Added proxy detection logic for MacOS 2019-01-29 14:44:20 -08:00
Bryan Roe
258c1396c7 Added proxy detection logic on windows 2019-01-28 15:57:11 -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
2019-01-24 11:19:33 -08:00
Bryan Roe
74d8bd9aac Fixed compiler warning 2019-01-23 17:50:18 -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
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
2046a22e9a Added meshcore DelayStart feature 2019-01-18 22:46:12 -08:00
Bryan Roe
2d0e8d227f Updated endianess of AgentCapabilities 2019-01-18 19:22:24 -08:00
Bryan Roe
d64dfb5504 Fixed compiler warnings on some toolchains 2019-01-18 16:02:00 -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
9a6e4af874 fixed typo in printf error message 2019-01-17 19:04:20 -08:00
Bryan Roe
51a8b5c44d fixed compiler warning 2019-01-17 18:08:51 -08:00
Bryan Roe
d0348b083b Merge branch 'master' of https://github.com/Ylianst/MeshAgent 2019-01-17 18:06:39 -08:00
Bryan Roe
a0767cd665 Added ability to merge AgentCapabilities from db 2019-01-17 18:06:33 -08:00
Ylian Saint-Hilaire
8988b5eada Added another Linux mshx bad name for v1 migration. 2019-01-17 16:54:56 -08:00
Bryan Roe
9ea6ecccdb Fixed duplicate MAC detection so that it skips 00:00:00:00:00:00, which is commonly used for loopback interfaces 2019-01-17 15:42:58 -08:00
Ylian Saint-Hilaire
12f8dc4509 Added MeshCommand_CoreOk. 2019-01-17 15:06:16 -08:00
Bryan Roe
73eb954a57 Added Linux support for system-wide proxy detection 2019-01-17 14:35:12 -08:00
Bryan Roe
989a500b6e Fix from Ylian, regarding Linux Transition Agent 2019-01-11 16:18:09 -08:00
Bryan Roe
2759cc799e Fixed preprocessor, so compiled correctly if OpenSSL is not linked 2019-01-11 16:13:44 -08:00
Bryan Roe
47a011bb8f 1. Added MacOS KVM Support
2. Added Helpers for Systemd detection, MemoryMappedFile Read, and CommandLine parsing, for Linux/MacOS
3. Added "IsService" helper for Linux/MacOS
4. Updated the updater so it uses SystemD, LaunchD, or InitD when appropriate.
5. Fixed auto update bugs
6. Updated, to support KVM with XWayland. Note: Only works when somebody is logged in. XWayland prevents connections when nobody is logged in
7. Added ECDSA support.
8. Added TPM support on Windows Agents.
2019-01-11 11:20:39 -08:00
Ylian Saint-Hilaire
3c80473a94 Major agent update. 2018-09-05 11:01:17 -07:00
Ylian Saint-Hilaire
4b5c77b4fd Many improvements. 2018-02-11 21:11:58 -08:00
Ylian Saint-Hilaire
508646044e Much improved, better stability, lots of fixes 2018-01-12 11:50:04 -08:00
Ylian Saint-Hilaire
becf71557f Improved agent that can update the MeshCentral1 agent 2017-11-09 16:07:39 -08:00