Skip to content

Commit

Permalink
refactor: Don't use mutable variable in fn args
Browse files Browse the repository at this point in the history
  • Loading branch information
viyatb committed May 5, 2018
1 parent 08613d6 commit 0d3f5d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions owtf/proxy/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

class ProxyProcess(OWTFProcess):

def initialize(self, outbound_options=[], outbound_auth=""):
def initialize(self, outbound_options=None, outbound_auth=""):
"""Initialize the proxy process
:param outbound_options: Outbound proxy options
Expand Down Expand Up @@ -111,7 +111,7 @@ def initialize(self, outbound_options=[], outbound_auth=""):

# Outbound Proxy
# Outbound proxy settings to be used inside request handler
if outbound_options:
if outbound_options and outbound_options is not None:
if len(outbound_options) == 3:
self.application.outbound_proxy_type = outbound_options[0]
self.application.outbound_ip = outbound_options[1]
Expand Down

0 comments on commit 0d3f5d3

Please sign in to comment.