Skip to content

Commit

Permalink
Merge branch 'release/0.7.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
yasuhito committed Nov 30, 2015
2 parents 0fa3896 + af8fe54 commit 459e239
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
## develop (unreleased)


## 0.7.4 (11/30/2015)
### Bugs fixed
* Fix NoMethodError.


## 0.7.3 (11/17/2015)
### Changes
* Pio 0.30.0.
Expand Down
2 changes: 1 addition & 1 deletion lib/phut/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Base module.
module Phut
VERSION = '0.7.3'
VERSION = '0.7.4'
end
6 changes: 3 additions & 3 deletions lib/phut/vhost_daemon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ def write_to_raw_socket(packet)
def create_udp_packet(dest)
Pio::Udp.new(source_mac: @options.fetch(:mac_address),
destination_mac: dest.mac_address,
ip_source_address: @options.fetch(:ip_address),
ip_destination_address: dest.ip_address)
source_ip_address: @options.fetch(:ip_address),
destination_ip_address: dest.ip_address)
end

def log_file
Expand All @@ -91,7 +91,7 @@ def read_loop
raw_data, = raw_socket.recvfrom(8192)
udp = Pio::Udp.read(raw_data)
unless @options[:promisc]
next if udp.ip_destination_address != @options.fetch(:ip_address)
next if udp.destination_ip_address != @options.fetch(:ip_address)
end
@logger.info "Received: #{udp}"
@packets_received << udp.snapshot
Expand Down

0 comments on commit 459e239

Please sign in to comment.