Dedicated-address predicate duplicated in four places #8
Labels
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
carvers/silta#8
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The dedicated-address predicate (
is_unspecified() || is_loopback()) is duplicated in src/main.rs:244, src/skill.rs:99, negated at src/skill.rs:192, with a variant in src/setup.rs:42.Failure scenario: four independently maintained copies of what counts as a dedicated address. If one gains a case (e.g. IPv6 loopback ::1 handling) the others do not, and describe prints a
.silta.internalhost name for a forward thatrun()binds as plain loopback without the lo0 restriction.Fix direction: a single
ResolvedForward::has_dedicated_address()method removes the drift.Source: high-effort code review, CONFIRMED. Area: config.