From f2c959055adacce5fd558b1b4b88046d6beeb422 Mon Sep 17 00:00:00 2001 From: Naman Sood Date: Fri, 26 Mar 2021 11:08:23 -0400 Subject: [PATCH] wgengine/netstack: fix connsOpenBySubnetIP comment Signed-off-by: Naman Sood --- wgengine/netstack/netstack.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wgengine/netstack/netstack.go b/wgengine/netstack/netstack.go index 3de2e6479..4e1144e7d 100644 --- a/wgengine/netstack/netstack.go +++ b/wgengine/netstack/netstack.go @@ -56,8 +56,10 @@ type Impl struct { mu sync.Mutex dns DNSMap - // connsOpenBySubnetIP keeps track of subnet IPs temporarily - // registered on netstack for active TCP connections. + // connsOpenBySubnetIP keeps track of number of connections open + // for each subnet IP temporarily registered on netstack for active + // TCP connections, so they can be unregistered when connections are + // closed. connsOpenBySubnetIP map[netaddr.IP]int }