(ips []string)
| 1140 | } |
| 1141 | |
| 1142 | func toNetipAddrSlice(ips []string) []netip.Addr { |
| 1143 | if len(ips) == 0 { |
| 1144 | return nil |
| 1145 | } |
| 1146 | netIPs := make([]netip.Addr, 0, len(ips)) |
| 1147 | for _, ip := range ips { |
| 1148 | addr, err := netip.ParseAddr(ip) |
| 1149 | if err != nil { |
| 1150 | continue |
| 1151 | } |
| 1152 | netIPs = append(netIPs, addr) |
| 1153 | } |
| 1154 | return netIPs |
| 1155 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…