Commit 217a79e
fronted: fix strip_port for IPv6 literals; clearer no-provider error
Address Copilot round-2 review on PR #4:
- strip_port mistook the last hextet of an unbracketed IPv6 literal
(e.g. 2001:db8::1) for a port. Strip a port only for bracketed IPv6
(keep through ']') or a single-colon host:port; leave multi-colon
unbracketed IPv6 unchanged. + strip_port_handles_ports_and_ipv6 test.
- NoHostMapping was only ever built with a fake provider "*" (rendered
as 'provider `*`'); rename to NoFrontingProvider { host } with message
'no fronting provider maps `{host}`' so the no-provider-matched case is
clear to operators.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 0366d65 commit 217a79e
1 file changed
Lines changed: 30 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
892 | 892 | | |
893 | 893 | | |
894 | 894 | | |
895 | | - | |
896 | | - | |
| 895 | + | |
897 | 896 | | |
898 | 897 | | |
899 | 898 | | |
| |||
1111 | 1110 | | |
1112 | 1111 | | |
1113 | 1112 | | |
1114 | | - | |
1115 | | - | |
1116 | | - | |
1117 | | - | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
1118 | 1130 | | |
1119 | 1131 | | |
1120 | 1132 | | |
| |||
1657 | 1669 | | |
1658 | 1670 | | |
1659 | 1671 | | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
1660 | 1682 | | |
1661 | 1683 | | |
1662 | 1684 | | |
| |||
0 commit comments