Skip to content

Commit

Permalink
brought config up to date, and fixed example
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Slaughter committed Sep 30, 2013
1 parent 24419ea commit 00d566d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/output_intervention.rb
@@ -1,9 +1,9 @@
module OutputIntervention
def self.on_request
def self.on_request t
puts "[%s:%d] >>> [%s:%d]" % [ t.to_client.peeraddr[2], t.to_client.peeraddr[1], t.to_server.peeraddr[2], t.to_server.peeraddr[1]]
end

def self.on_response
def self.on_response t
puts "[%s:%d] <<< [%s:%d]" % [ t.to_client.peeraddr[2], t.to_client.peeraddr[1], t.to_server.peeraddr[2], t.to_server.peeraddr[1]]
end
end
2 changes: 1 addition & 1 deletion lib/intervention.rb
Expand Up @@ -21,7 +21,7 @@ class << self
# Starts intervention from a config file
#
def boot config_file = nil
config = YAML.load_file config_file || "./config/intervention.yml"
config = YAML.load_file config_file || "config/intervention.yml"
config.each do | proxy_name, proxy_options |
new_proxy proxy_name, proxy_options.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
end
Expand Down

0 comments on commit 00d566d

Please sign in to comment.