mirror of
https://github.com/MeexReay/sRAC.git
synced 2025-05-06 05:08:02 +03:00
fix dumb no accounts timeout exploit
This commit is contained in:
parent
8ee5e017a4
commit
999c5e4de5
@ -79,7 +79,7 @@ impl Context {
|
||||
}
|
||||
|
||||
fn get_account_by_addr(&self, addr: &str) -> Option<Account> {
|
||||
for acc in self.accounts.read().unwrap().iter() {
|
||||
for acc in self.accounts.read().unwrap().iter().rev() {
|
||||
if acc.addr() == addr {
|
||||
return Some(acc.clone())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user