Skip to content

Commit 615aa8d

Browse files
committed
pick up netifaces updates, improve error catching
1 parent 0fcba5e commit 615aa8d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ GEM
308308
net-smtp (0.3.3)
309309
net-protocol
310310
net-ssh (7.1.0)
311-
network_interface (0.0.2)
311+
network_interface (0.0.4)
312312
nexpose (7.3.0)
313313
nio4r (2.5.9)
314314
nokogiri (1.14.5)

lib/msf/core/opt_address_local.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ module Msf
1010
###
1111
class OptAddressLocal < OptAddress
1212
def interfaces
13-
NetworkInterface.interfaces || []
13+
begin
14+
NetworkInterface.interfaces || []
15+
rescue
16+
elog(e)
17+
[]
18+
end
1419
end
1520

1621
def normalize(value)

0 commit comments

Comments
 (0)