mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Wallet API: Catch error from tools::is_local_address
This commit is contained in:
parent
e56bf442c3
commit
4efc926d28
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)
|
||||||
{
|
{
|
||||||
return tools::is_local_address(address);
|
try {
|
||||||
|
return tools::is_local_address(address);
|
||||||
|
} catch (const std::exception &e) {
|
||||||
|
MERROR("error: " << e.what());
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue