lib/rex/socket/ip.rb in librex-0.0.70 vs lib/rex/socket/ip.rb in librex-0.0.71
- old
+ new
@@ -73,9 +73,10 @@
Rex::Compat.is_netbsd or
Rex::Compat.is_bsdi or
Rex::Compat.is_macosx
)
gram=gram.dup
+ # Note that these are *intentionally* host order for BSD support
gram[2,2]=gram[2,2].unpack("n").pack("s")
gram[6,2]=gram[6,2].unpack("n").pack("s")
end
begin