{"record":{"id":"49d43a1296816ec7","repo":"netbirdio/netbird","slug":"parse-destination-w","errorCode":null,"errorMessage":"parse destination: %w","messagePattern":"parse destination: %w","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"client/internal/acl/manager.go","lineNumber":503,"sourceCode":"\tif rule.IsDynamic {\n\t\tif dynamicResolver {\n\t\t\tif len(rule.Domains) > 0 {\n\t\t\t\tdestination.Set = firewall.NewDomainSet(domain.FromPunycodeList(rule.Domains))\n\t\t\t} else {\n\t\t\t\t// isDynamic is set but no domains = outdated management server\n\t\t\t\tlog.Warn(\"connected to an older version of management server (no domains in rules), using default destination\")\n\t\t\t\tdestination.Prefix = getDefault(sources[0])\n\t\t\t}\n\t\t} else {\n\t\t\t// client resolves DNS, we (router) don't know the destination\n\t\t\tdestination.Prefix = getDefault(sources[0])\n\t\t}\n\t\treturn destination, nil\n\t}\n\n\tprefix, err := netip.ParsePrefix(rule.Destination)\n\tif err != nil {\n\t\treturn destination, fmt.Errorf(\"parse destination: %w\", err)\n\t}\n\tdestination.Prefix = prefix\n\treturn destination, nil\n}\n\nfunc getDefault(prefix netip.Prefix) netip.Prefix {\n\tif prefix.Addr().Is6() {\n\t\treturn netip.PrefixFrom(netip.IPv6Unspecified(), 0)\n\t}\n\treturn netip.PrefixFrom(netip.IPv4Unspecified(), 0)\n}\n","sourceCodeStart":485,"sourceCodeEnd":515,"githubUrl":"https://github.com/netbirdio/netbird/blob/93e97f4bf1ad715072dcb3fb6cdb1763431b5a9c/client/internal/acl/manager.go#L485-L515","documentation":"The static destination prefix of an ACL rule failed netip.ParsePrefix during destination building. The rule's destination string is malformed (bad CIDR notation or wrong family), so the rule cannot be compiled.","triggerScenarios":"Thrown at client/internal/acl/manager.go:503 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Validate destination CIDR format on the management side","Skip rules with unparseable destinations","Check family consistency between source and destination"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"93e97f4bf1ad715072dcb3fb6cdb1763431b5a9c","analyzedAt":"2026-08-16T03:09:19.136Z","contentChangedAt":"2026-08-16T03:09:19.136Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}