Skip to content

Instantly share code, notes, and snippets.

@rorysavage77
Created March 31, 2015 18:29
Show Gist options
  • Save rorysavage77/6ff9eaf5716fe4edc52d to your computer and use it in GitHub Desktop.
Save rorysavage77/6ff9eaf5716fe4edc52d to your computer and use it in GitHub Desktop.
chunk.each_line do |line|
if line =~ /CF-Connecting-IP: (\d+.\d+.\d+.\d+)/
cfConntingIp = line.split("CF-Connecting-IP: ", 2)
puts cfConntingIp
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment