- mtglib/proxy.go: rename private field domainFrontingIP -> domainFrontingHost
and update DomainFrontingAddress() doc comment to reflect that hostnames
are now accepted. The exported mtglib.ProxyOpts.DomainFrontingIP is
unchanged (public API), so the assignment in NewProxy now reads
`domainFrontingHost: opts.DomainFrontingIP,` which makes the
public-vs-internal naming explicitly visible at the boundary.
- internal/config/{parse,config}.go: reorder so Host comes before IP in
the [domain-fronting] struct. Cosmetic, but signals Host is the
preferred forward path.
- Add TestDomainFrontingHostAcceptsLiteralIP + domain_fronting_host_ip.toml
fixture exercising the documented "host accepts hostname or literal IP"
contract end-to-end.
pull/480/head
|
|
||
| 37 |
|
37 |
|
| 38 |
|
38 |
|
| 39 |
|
39 |
|
| 40 |
|
|
|
| 41 |
|
40 |
|
|
41 |
|
|
| 42 |
|
42 |
|
| 43 |
|
43 |
|
| 44 |
|
44 |
|
|
|
||
| 90 |
|
90 |
|
| 91 |
|
91 |
|
| 92 |
|
92 |
|
|
93 |
|
|
|
94 |
|
|
|
95 |
|
|
|
96 |
|
|
|
97 |
|
|
|
98 |
|
|
|
99 |
|
|
| 93 |
|
100 |
|
| 94 |
|
101 |
|
| 95 |
|
102 |
|
|
|
||
| 24 |
|
24 |
|
| 25 |
|
25 |
|
| 26 |
|
26 |
|
| 27 |
|
|
|
| 28 |
|
27 |
|
|
28 |
|
|
| 29 |
|
29 |
|
| 30 |
|
30 |
|
| 31 |
|
31 |
|
|
|
||
|
1 |
|
|
|
2 |
|
|
|
3 |
|
|
|
4 |
|
|
|
5 |
|
|
|
||
| 30 |
|
30 |
|
| 31 |
|
31 |
|
| 32 |
|
32 |
|
| 33 |
|
|
|
|
33 |
|
|
| 34 |
|
34 |
|
| 35 |
|
35 |
|
| 36 |
|
36 |
|
|
|
||
| 48 |
|
48 |
|
| 49 |
|
49 |
|
| 50 |
|
50 |
|
| 51 |
|
|
|
|
51 |
|
|
|
52 |
|
|
| 52 |
|
53 |
|
| 53 |
|
54 |
|
| 54 |
|
|
|
| 55 |
|
|
|
|
55 |
|
|
|
56 |
|
|
| 56 |
|
57 |
|
| 57 |
|
58 |
|
| 58 |
|
59 |
|
|
|
||
| 354 |
|
355 |
|
| 355 |
|
356 |
|
| 356 |
|
357 |
|
| 357 |
|
|
|
|
358 |
|
|
| 358 |
|
359 |
|
| 359 |
|
360 |
|
| 360 |
|
361 |
|