merge of '3679ca64eea825719eb0d26b285091a9e81107f3'
and '36fc8877438b0f8fa6220cd52459497af5a2eed6'
This commit is contained in:
@ -19,6 +19,7 @@ import java.util.Iterator;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
import java.util.Vector;
|
||||||
|
|
||||||
import net.i2p.crypto.DSAEngine;
|
import net.i2p.crypto.DSAEngine;
|
||||||
import net.i2p.crypto.SHA256Generator;
|
import net.i2p.crypto.SHA256Generator;
|
||||||
@ -451,6 +452,18 @@ public class RouterInfo extends DataStructureImpl {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<RouterAddress> getTargetAddresses(String transportStyle) {
|
||||||
|
List<RouterAddress> ret = new Vector<RouterAddress>();
|
||||||
|
synchronized(this._addresses) {
|
||||||
|
for(Object o : this._addresses) {
|
||||||
|
RouterAddress addr = (RouterAddress)o;
|
||||||
|
if(addr.getTransportStyle().equals(transportStyle))
|
||||||
|
ret.add(addr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Actually validate the signature
|
* Actually validate the signature
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user