mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
This is just the API part for #6074 We expose a new API `set_disabled_resources` which given a set of resource ids it does the following: * Disconnect any active connection depending only on this resource * Prevent any new connection with that resource id being established The `set_disabled_resources` API is purposely not stateful. In other words, resources cannot be incrementally enabled or disabled. Instead, clients always need to send the latest state, i.e. all resources that should be disabled. `connlib` will figure out the diff and correctly enable / disable resources as necessary. Thus, enabling a resource is done by calling `set_disabled_resources` without the previously disabled resource ID. Initially, this will only be used for the internet resource but the use can be expanded for any other resource.
Connlib
Firezone's connectivity library shared by all clients.
Building Connlib
You shouldn't need to build connlib directly; it's typically built as a dependency of one of the other Firezone components. See READMEs in those directories for relevant instructions.