Make sure all vpnAddrs are hoisted to primary, resolve a few more TODOs (#1319)

This commit is contained in:
Nate Brown
2025-01-30 13:33:19 -06:00
committed by GitHub
parent 1ad0f57c1e
commit e4daed3563
15 changed files with 61 additions and 112 deletions

View File

@@ -172,7 +172,6 @@ func signCert(args []string, out io.Writer, errOut io.Writer, pr PasswordReader)
if *sf.networks != "" {
for _, rs := range strings.Split(*sf.networks, ",") {
//TODO: error on duplicates? Mainly only addr matters, having two of the same addr in the same or different prefix space is strange
rs := strings.Trim(rs, " ")
if rs != "" {
n, err := netip.ParsePrefix(rs)
@@ -197,7 +196,6 @@ func signCert(args []string, out io.Writer, errOut io.Writer, pr PasswordReader)
}
if *sf.unsafeNetworks != "" {
//TODO: error on duplicates?
for _, rs := range strings.Split(*sf.unsafeNetworks, ",") {
rs := strings.Trim(rs, " ")
if rs != "" {