Open samthesamman opened 2 months ago
allowedIps=0.0.0.0/5
We rely on net/netip:IPPrefix.Contains: https://go.dev/play/p/RIcrz4KtOGD
But if allowedIps is set to 0.0.0.0/5, shouldn't this be considered a split tunnel? Your code example considers this full.
Looks like you are just looking for the presence of 0.0.0.0 in allowedIps to determine if it's a full tunnel. But if I set something like
allowedIps=0.0.0.0/5
, then this should be detected as split tunnel. Not sure if this is just a UI thing or if you have logic that depends on this detection.