feature/conn25: install all the hooks
Install the previously uninstalled hooks for the filter and tstun intercepts. Move the DNS manager hook installation into Init() with all the others. Protect all implementations with a short-circuit if the node is not configured to use Connectors 2025. The short-circuit pattern replaces the previous pattern used in managing the DNS manager hook, of setting it to nil in response to CapMap changes. Fixes tailscale/corp#38716 Signed-off-by: Michael Ben-Ami <mzb@tailscale.com>
This commit is contained in:
committed by
mzbenami
parent
70fabf1716
commit
156e6ae5cd
@@ -37,8 +37,8 @@ type IPMapper interface {
|
||||
// range for an app on the connector, but not mapped to the client at srcIP, implementations
|
||||
// should return [ErrUnmappedSrcAndTransitIP]. If the transitIP is not within a configured
|
||||
// Transit IP range, i.e. it is not actually a Transit IP, implementations should return
|
||||
// a nil error, a zero-value [netip.Addr] to indicate this is potentially valid, non-app-connector
|
||||
// traffic.
|
||||
// a nil error, and a zero-value [netip.Addr] to indicate this is potentially valid,
|
||||
// non-app-connector traffic.
|
||||
ConnectorRealIPForTransitIPConnection(srcIP netip.Addr, transitIP netip.Addr) (netip.Addr, error)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user