mirror of
https://github.com/torproject/metrics-lib.git
synced 2025-02-12 04:50:40 +00:00
Accept transport lines containing more than just the transport name.
Sanitized bridge descriptors contain transport lines with just the transport name. However, there are now relays including unsanitized transport lines, most likely because of a configuration problem. Don't reject the entire descriptor when encountering those lines.
This commit is contained in:
parent
20f9d5574f
commit
25f0e656c4
@ -571,7 +571,7 @@ public class ExtraInfoDescriptorImpl extends DescriptorImpl
|
||||
|
||||
private void parseTransportLine(String line, String lineNoOpt,
|
||||
String[] partsNoOpt) throws DescriptorParseException {
|
||||
if (partsNoOpt.length != 2) {
|
||||
if (partsNoOpt.length < 2) {
|
||||
throw new DescriptorParseException("Illegal line '" + line + "'.");
|
||||
}
|
||||
this.transports.add(partsNoOpt[1]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user