wgengine: finish updating isTrimmablePeer

I accidentally merged Dave's change with the XXXX DO NOT SUBMIT comment
in it.
pull/1069/head
Brad Fitzpatrick 4 years ago
parent cb96b14bf4
commit 80c94168ae

@ -626,11 +626,9 @@ func forceFullWireguardConfig(numPeers int) bool {
// We can only trim peers that both a) support discovery (because we // We can only trim peers that both a) support discovery (because we
// know who they are when we receive their data and don't need to rely // know who they are when we receive their data and don't need to rely
// on wireguard-go figuring it out) and b) for implementation // on wireguard-go figuring it out) and b) for implementation
// simplicity, have only one IP address (an IPv4 /32), which is the // simplicity, have only non-subnet AllowedIPs (an IPv4 /32 or IPv6
// common case for most peers. Subnet router nodes will just always be // /128), which is the common case for most peers. Subnet router nodes
// created in the wireguard-go config. // will just always be created in the wireguard-go config.
//
// XXXXXXX DO NOT SUBMIT fix docstring
func isTrimmablePeer(p *wgcfg.Peer, numPeers int) bool { func isTrimmablePeer(p *wgcfg.Peer, numPeers int) bool {
if forceFullWireguardConfig(numPeers) { if forceFullWireguardConfig(numPeers) {
return false return false

Loading…
Cancel
Save