mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
With #3391, constructing a new tunnel will no longer be `async` which makes DNS resolution the only `async` component of `set_peer_connection_request`. In general, adding resources as part of setting up a connection is a duplicated of the logic within `allow_access`. We solve both of these problems at once by moving the DNS resolution out of `connlib` into the `gateway` binary and perform it as part of the eventloop during a connection setup.