[TRIGGER] Fix ZeroTier Online/Offline Trigger
See original GitHub issueThe current ZeroTier trigger for node online/offline is using the unique
dedupe parameter.
The issue with this is that it checks for unique values across the entire object. If another value like clock
or ipAssignments
change it will trigger the event again.
For these two triggers, it needs to be updated to only check if the online
(boolean) state has changed - and ignore all the other keys.
Issue Analytics
- State:
- Created a year ago
- Comments:12 (5 by maintainers)
Top Results From Across the Web
ZT network adapter says connected event when wifi is ...
I ran into a problem where a laptop takes several minutes to login and I narrowed it down to the ZT network adapter....
Read more >Troubleshooting & FAQ - ZeroTier Documentation
First, make sure your device is authorized on the network and you're using the ZeroTier assigned Managed IP address. Aside from that, some...
Read more >Zerotier-cli status: OFFLINE - Community Support
The culprit? Your routers. What is happening is that your router likely has some “security” software on it that is classifying ZeroTier traffic ......
Read more >Pages - ZeroTier Knowledge Base - Confluence
To fix this, navigate to C:\ProgramData\ZeroTier\One\tap-windows\x64 then right click on the file zttap300.inf and select "Install" from the menu. Note: The ...
Read more >Creating a Local LAN with ZeroTier - YouTube
How to create a local LAN to play video games or securely administer servers. Better than HamachiZeroTier: https://goo.gl/ufyAg6Vultr: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@luancazarine while that is true, I think that’s why it depends how frequently you poll the data.
It’s worth noting that ZeroTier considers the machine
online
iflastOnline
is in the last 3 minutes. We can include this information in the description of the source.@luancazarine that’s because you have your node offline, I guess his is primarily an issue in reverse (as long as your node is online, the
lastOnline
will constantly be updated with the ping time).If it’s going from offline > online then
lastOnline
wouldn’t update, however other fields can be updated (manually) and this shouldn’t fire the online event. Only the change of theonline
state should emit that event.