mirror of
https://github.com/tailscale/tailscale.git
synced 2026-10-09 11:52:00 -04:00
conn25.go had grown to hold the extension, the Conn25 type, the config, the DNS rewriting, and both the client and connector implementations. Move the client struct and its methods to client.go, and the connector struct and its methods to connector.go. appAddr, transitIPExpiryEntry, and connectorTransitIPExpiry are used only by the connector, so they move to connector.go. addrs moves to client.go because it is a client-side concept, even though the extension's send path in conn25.go and addrAssignments.go also refer to it. Everything else stays in conn25.go. Test functions covering client and connector behavior move to client_test.go and connector_test.go correspondingly. This is a pure code move: no declaration is added, removed, or edited, and the relative order of everything is unchanged. Updates #cleanup Signed-off-by: Michael Ben-Ami <mzb@tailscale.com>