Skip to content
This repository has been archived by the owner on Feb 28, 2018. It is now read-only.

Commit

Permalink
Fixes #165 : Fixed a bug which caused the --custom-proxy argument to …
Browse files Browse the repository at this point in the history
…not work properly.
  • Loading branch information
evilsocket committed Feb 29, 2016
1 parent 90814fc commit 29cce43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bettercap/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -452,9 +452,9 @@ def parse_ignore!(value)
def parse_custom_proxy!(value, https=false)
raise BetterCap::Error, 'Invalid custom HTTP upstream proxy address specified.' unless Network::Validator.is_ip?(value)
if https
@custom_proxy = value
else
@custom_https_proxy = value
else
@custom_proxy = value
end
end

Expand Down

0 comments on commit 29cce43

Please sign in to comment.