Skip to content

Conversation

Brandon-T
Copy link

Signed-off-by: Brandon T <JustBrandonT@gmail.com>
@zx2c4
Copy link
Member

zx2c4 commented May 26, 2025

Motivation?

@Brandon-T
Copy link
Author

Brandon-T commented Jun 6, 2025

Motivation?

Hi, sorry for the late reply. I didn't see the github notification :o

I'm adding a kill-switch to an app, so would need to know if lock-down is enabled. If the service isn't running, I would block all connections going out.

Also would be nice to use to display a warning to the user if it's off.

@bsclifton
Copy link

It would be so cool to have this merged 😍

*/
@Override
public boolean isAlwaysOn() {
return vpnService.get(0, TimeUnit.NANOSECONDS).isAlwaysOn();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure this can never race with setStateInternal? We should probably have a slightly longer timeout if that's possible.

@msfjarvis
Copy link
Member

Cherry-picked as afab622 with some build fixes, if there aren't any disagreements this should hit the master branch in the next 2 weeks.

@msfjarvis msfjarvis closed this Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants