question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[TRIGGER] Fix ZeroTier Online/Offline Trigger

See original GitHub issue

The 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:closed
  • Created a year ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
zalmanlewcommented, May 11, 2022

@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 if lastOnline is in the last 3 minutes. We can include this information in the description of the source.

1reaction
zalmanlewcommented, May 10, 2022

@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 the online state should emit that event.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found