Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions htpclient/initialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,10 @@ def __check_cert(self, args):
logging.debug("Configuration session cert to: " + cert)

def __check_url(self, args):
if args.cpu_only is not None and args.cpu_only:
logging.debug("Setting agent to be CPU only..")
self.config.set_value('cpu-only', True)

if not self.config.get_value('url'):
# ask for url
if args.url is None:
Expand All @@ -227,10 +231,6 @@ def __check_url(self, args):
self.__check_url(args)
else:
logging.debug("Connection test successful!")

if args.cpu_only is not None and args.cpu_only:
logging.debug("Setting agent to be CPU only..")
self.config.set_value('cpu-only', True)

def __build_directories(self):
if not os.path.isdir(self.config.get_value('crackers-path')):
Expand Down
Loading