Skip to content

Commit

Permalink
vector_tpl(): was accidentally using remote addre instead of server addr
Browse files Browse the repository at this point in the history
  • Loading branch information
Zapotek committed Feb 15, 2012
1 parent b9c6590 commit 9195dff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rack/arachni-vectorfeed.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ def extract_headers( env )
def vector_tpl( env )
vector = {
'method' => env['REQUEST_METHOD'].downcase,
'action' => env['rack.url_scheme'] + '//' + env['REMOTE_ADDR'] +
':' + env['SERVER_PORT'] + env['REQUEST_URI']
'action' => env['rack.url_scheme'] + '//' + env['HTTP_HOST'] +
env['REQUEST_URI']
}
end

Expand Down

0 comments on commit 9195dff

Please sign in to comment.