mirror of
https://github.com/slackhq/nebula.git
synced 2025-12-30 02:28:27 +01:00
Make sure all vpnAddrs are hoisted to primary, resolve a few more TODOs (#1319)
This commit is contained in:
@@ -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 != "" {
|
||||
|
||||
Reference in New Issue
Block a user