From 50cd5ddbfa95b0e60e31bbde9a4f328c4d8e212a Mon Sep 17 00:00:00 2001 From: pyllyukko Date: Sat, 11 Apr 2015 22:03:45 +0300 Subject: [PATCH] Specify address family --- shank.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shank.rb b/shank.rb index bd3389f..f6a8114 100755 --- a/shank.rb +++ b/shank.rb @@ -148,7 +148,7 @@ class Shank # @param [String] interface (eth0) The interface to poison through def initialize(ip, interface = "eth0") @inject_queue = Queue.new - @ip = IPAddr.new(ip) + @ip = IPAddr.new(ip, Socket::AF_INET) @ipr = @ip.to_range @arp_cache = ARPCache.new @interface = interface