Commit 00a28f6
committed
Improve IPv6 address handling in ocspserve
When setting an IPv6 address to listing on via the -address command-line
argument for both serve and ocspserve, the latter errors with "listen
tcp: address ::1:8889: too many colons in address" unless it is escaped.
However, the former uses the net library to process the address and
port, which results in the enforced escaping of IPv6 addresses
regardless of if the address is already enclosed in square brackets
(e.g. [::1]).
This changes oscpserve to use the same net library call as serve to
provide consistency between the two calls when handling IPv6 addresses.1 parent 6dd12c2 commit 00a28f6
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
56 | | - | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
0 commit comments