mirror of
https://github.com/monero-project/monero.git
synced 2026-01-16 01:23:02 +01:00
Wallet API: Catch error from tools::is_local_address
This commit is contained in:
@@ -39,8 +39,13 @@ namespace Monero {
|
||||
namespace Utils {
|
||||
|
||||
bool isAddressLocal(const std::string &address)
|
||||
{
|
||||
return tools::is_local_address(address);
|
||||
{
|
||||
try {
|
||||
return tools::is_local_address(address);
|
||||
} catch (const std::exception &e) {
|
||||
MERROR("error: " << e.what());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user