phut 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/phut/version.rb +1 -1
- data/lib/phut/vhost_daemon.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 703fe2a4bb37ea1ca4cadf9ddc07886897dd085a
|
4
|
+
data.tar.gz: 808e1dfab4de0c60cfaf70f251278388ea13a7bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec653af4dfc965654373cb287cf34d707565df9e5658ef82ef93da10bc72123b16b81b48fff7855c0bb1512831967b27e7193cfe9efc2687c34788f00c63fd3f
|
7
|
+
data.tar.gz: ff6403182467d4db9be23e1aa94bd3afdabd61bbfb5e96ce4bedd7fc90ad674e1d7434d758937524aa23d2a8c7c7d571d41efc172c80e8dadc1de594aad5dde3
|
data/CHANGELOG.md
CHANGED
data/lib/phut/version.rb
CHANGED
data/lib/phut/vhost_daemon.rb
CHANGED
@@ -76,8 +76,8 @@ module Phut
|
|
76
76
|
def create_udp_packet(dest)
|
77
77
|
Pio::Udp.new(source_mac: @options.fetch(:mac_address),
|
78
78
|
destination_mac: dest.mac_address,
|
79
|
-
|
80
|
-
|
79
|
+
source_ip_address: @options.fetch(:ip_address),
|
80
|
+
destination_ip_address: dest.ip_address)
|
81
81
|
end
|
82
82
|
|
83
83
|
def log_file
|
@@ -91,7 +91,7 @@ module Phut
|
|
91
91
|
raw_data, = raw_socket.recvfrom(8192)
|
92
92
|
udp = Pio::Udp.read(raw_data)
|
93
93
|
unless @options[:promisc]
|
94
|
-
next if udp.
|
94
|
+
next if udp.destination_ip_address != @options.fetch(:ip_address)
|
95
95
|
end
|
96
96
|
@logger.info "Received: #{udp}"
|
97
97
|
@packets_received << udp.snapshot
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phut
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yasuhito Takamiya
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gli
|