mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-01 16:39:11 +00:00
use dummy mac address if anything goes wrong asking for the real one
This commit is contained in:
parent
b538343f61
commit
fe5570dba8
@ -65,8 +65,8 @@ public class MacAddressProvider {
|
|||||||
byte[] address = null;
|
byte[] address = null;
|
||||||
try {
|
try {
|
||||||
address = getMacAddress();
|
address = getMacAddress();
|
||||||
} catch( SocketException se ) {
|
} catch (Throwable t) {
|
||||||
logger.warn("Unable to get mac address, will use a dummy address", se);
|
logger.warn("Unable to get mac address, will use a dummy address", t);
|
||||||
// address will be set below
|
// address will be set below
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user