Skip to content

Commit

Permalink
Fix SSL cert warning for empty hostnames
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroSteiner committed Aug 30, 2019
1 parent 01e579d commit 385722d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion king_phisher/client/assistants/campaign.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ def signal_assistant_apply(self, _):
url_scheme = _ModelURLScheme(*combobox_url_scheme.get_model()[active])
if url_scheme.name == 'https':
hostname = gui_utilities.gtk_combobox_get_entry_text(self.gobjects['combobox_url_hostname'])
if not self.application.rpc('ssl/sni_hostnames/load', hostname):
if hostname and not self.application.rpc('ssl/sni_hostnames/load', hostname):
gui_utilities.show_dialog_error('Failure', self.parent, 'Failed to load an SSL certificate for the specified hostname.')

self.config['mailer.webserver_url'] = self._get_webserver_url()
Expand Down

0 comments on commit 385722d

Please sign in to comment.