Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shelld3v committed Oct 19, 2024
1 parent 6267b0b commit 35651db
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/connection/requester.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ def __init__(self) -> None:
if options["cert_file"] and options["key_file"]:
self._cert = (options["cert_file"], options["key_file"])

if options["auth"]:
self.set_auth(options["auth_type"], options["auth"])

self._socket_options = []
if options["network_interface"]:
self._socket_options.append(
Expand Down Expand Up @@ -162,6 +159,9 @@ def __init__(self):
),
)

if options["auth"]:
self.set_auth(options["auth_type"], options["auth"])

def set_auth(self, type: str, credential: str) -> None:
if type in ("bearer", "jwt"):
self.session.auth = HTTPBearerAuth(credential)
Expand Down Expand Up @@ -312,6 +312,9 @@ def __init__(self) -> None:
)
self.replay_session = None

if options["auth"]:
self.set_auth(options["auth_type"], options["auth"])

def parse_proxy(self, proxy: str) -> str:
if not proxy:
return None
Expand Down

0 comments on commit 35651db

Please sign in to comment.