(addr netip.Addr)
| 64 | } |
| 65 | |
| 66 | func AddrToPrefix(addr netip.Addr) netip.Prefix { |
| 67 | res, err := addr.Prefix(addr.BitLen()) |
| 68 | if err != nil { |
| 69 | panic(err) |
| 70 | } |
| 71 | if !res.IsValid() { |
| 72 | panic("invalid prefix") |
| 73 | } |
| 74 | return res |
| 75 | } |
| 76 | |
| 77 | func CentralConfigValidator(cfg *CentralCfg) error { |
| 78 | nodes := make([]string, 0) |
no outgoing calls
no test coverage detected