We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c3983a commit b5a47bdCopy full SHA for b5a47bd
1 file changed
cli/main.go
@@ -246,12 +246,12 @@ func run(c *cli.Context) error {
246
return fmt.Errorf("failed to create handler: %w", err)
247
}
248
249
- allPrefixes := []netip.Prefix{
250
- netip.MustParsePrefix("0.0.0.0/0"),
251
- netip.MustParsePrefix("::/0"),
+ allRoutes := []icx.AllowedRoute{
+ {Src: netip.MustParsePrefix("0.0.0.0/0"), Dst: netip.MustParsePrefix("0.0.0.0/0")},
+ {Src: netip.MustParsePrefix("::/0"), Dst: netip.MustParsePrefix("::/0")},
252
253
254
- if err := h.AddVirtualNetwork(c.Uint("vni"), peerAddr, allPrefixes); err != nil {
+ if err := h.AddVirtualNetwork(c.Uint("vni"), peerAddr, allRoutes); err != nil {
255
return fmt.Errorf("failed to add virtual network: %w", err)
256
257
0 commit comments