Skip to content

Commit

Permalink
Pass along the client IP address to the input filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
stanhu committed Jan 22, 2015
1 parent 0e22bad commit b711d27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lumberjack/server.rb
Expand Up @@ -241,7 +241,7 @@ def window_size(size)
end

def data(sequence, map, &block)
block.call(map)
block.call(map, @fd.peeraddr[3])
if (sequence - @last_ack) >= @window_size
@fd.syswrite(["1A", sequence].pack("A*N"))
@last_ack = sequence
Expand Down

0 comments on commit b711d27

Please sign in to comment.