mirror of
https://github.com/monero-project/monero.git
synced 2024-11-17 08:17:37 +00:00
Merge pull request #1679
4efc926d
Wallet API: Catch error from tools::is_local_address (Jaquee)
This commit is contained in:
commit
99ee3fd17e
1 changed files with 7 additions and 2 deletions
|
@ -40,7 +40,12 @@ namespace Utils {
|
||||||
|
|
||||||
bool isAddressLocal(const std::string &address)
|
bool isAddressLocal(const std::string &address)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
return tools::is_local_address(address);
|
return tools::is_local_address(address);
|
||||||
|
} catch (const std::exception &e) {
|
||||||
|
MERROR("error: " << e.what());
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue