mirror of
https://github.com/tailscale/tailscale.git
synced 2026-09-23 03:55:11 -04:00
Pulls in https://github.com/tailscale/wireguard-go/pull/85 which fixes an unbounded memory leak in mkIPInCIDRsTestFunc. It used a package-level placeholder Peer, and AllowedIPs.Insert threads every trie node onto that peer's trieEntries list, so each call leaked its whole trie. SetAllowedIPs calls it on every netmap update, so peer churn accumulated trie nodes until the client OOMed. Fixes tailscale/corp#47010 Signed-off-by: Adriano Sela Aviles <adriano@tailscale.com>
20 lines
788 B
Nix
20 lines
788 B
Nix
# This is a shell.nix file used to describe the environment that
|
|
# tailscale needs for development.
|
|
#
|
|
# For more information about this and why this file is useful, see here:
|
|
# https://nixos.org/guides/nix-pills/developing-with-nix-shell.html
|
|
#
|
|
# Also look into direnv: https://direnv.net/, this can make it so that you can
|
|
# automatically get your environment set up when you change folders into the
|
|
# project.
|
|
(import (
|
|
let
|
|
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
|
in fetchTarball {
|
|
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
|
|
sha256 = lock.nodes.flake-compat.locked.narHash; }
|
|
) {
|
|
src = ./.;
|
|
}).shellNix
|
|
# nix-direnv cache busting line: sha256-zhqsqZG3LyclwUjtj9b3EbhabiV8a4L+OS6OVTNmdF4=
|