Skip to content

Make IP address validation lazier#668

Open
mkeeter wants to merge 2 commits into
mkeeter/subcommand-enumfrom
mkeeter/lazy-ip-address
Open

Make IP address validation lazier#668
mkeeter wants to merge 2 commits into
mkeeter/subcommand-enumfrom
mkeeter/lazy-ip-address

Conversation

@mkeeter
Copy link
Copy Markdown
Contributor

@mkeeter mkeeter commented May 15, 2026

(Staged on #666)

This PR makes validation of the --ip argument lazier: we now store a Result<ScopedV6Addr, ScopedV6AddrError>, and only require it to be valid when it's actually used.

Fixes #609

@mkeeter mkeeter requested review from hawkw and labbott May 15, 2026 16:12
Copy link
Copy Markdown
Contributor

@labbott labbott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, you may want reviews from those who might have strong opinions about thiserror shaped things

@mkeeter mkeeter force-pushed the mkeeter/lazy-ip-address branch from 0703187 to 9bee966 Compare May 18, 2026 19:30
@mkeeter mkeeter force-pushed the mkeeter/subcommand-enum branch 2 times, most recently from 914a821 to 8bc7cfb Compare May 18, 2026 19:53
@mkeeter mkeeter force-pushed the mkeeter/lazy-ip-address branch from 9bee966 to 5be72a2 Compare May 18, 2026 19:53
@mkeeter mkeeter force-pushed the mkeeter/subcommand-enum branch from 8bc7cfb to 9b7da57 Compare May 18, 2026 20:21
@mkeeter mkeeter force-pushed the mkeeter/lazy-ip-address branch 2 times, most recently from 3d3115f to 39bea87 Compare May 18, 2026 20:54
@mkeeter mkeeter force-pushed the mkeeter/subcommand-enum branch from 9b7da57 to 1cefecd Compare May 18, 2026 20:54
@mkeeter mkeeter force-pushed the mkeeter/lazy-ip-address branch from 39bea87 to 8e6b788 Compare May 20, 2026 19:40
@mkeeter mkeeter force-pushed the mkeeter/subcommand-enum branch from 1cefecd to 9474cbb Compare May 20, 2026 19:40
@mkeeter mkeeter force-pushed the mkeeter/lazy-ip-address branch from 8e6b788 to 925eafc Compare May 20, 2026 20:09
@mkeeter mkeeter force-pushed the mkeeter/subcommand-enum branch 2 times, most recently from 8c8ab59 to d462926 Compare May 20, 2026 20:45
@mkeeter mkeeter force-pushed the mkeeter/lazy-ip-address branch from 925eafc to 1d1f33d Compare May 20, 2026 20:45
@mkeeter mkeeter force-pushed the mkeeter/subcommand-enum branch from d462926 to 9029fba Compare May 20, 2026 23:03
@mkeeter mkeeter force-pushed the mkeeter/lazy-ip-address branch from 1d1f33d to 03a5bbb Compare May 20, 2026 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants