Enable tunnel testing when in hidden mode (ticket #1192)

Enable tunnel testing when without addresses (ticket #1835)
Use fast peers for inbound tunnels when without addresses (ticket #1835)
This commit is contained in:
zzz
2016-08-19 17:13:12 +00:00
parent 268953e19f
commit be5fdea5e1
5 changed files with 38 additions and 4 deletions

View File

@@ -180,6 +180,16 @@ public class RouterInfo extends DatabaseEntry {
_published = published;
}
/**
* Return the number of router addresses.
* More efficient than getAddresses().size()
*
* @since 0.9.27
*/
public int getAddressCount() {
return _addresses.size();
}
/**
* Retrieve the set of RouterAddress structures at which this
* router can be contacted.