support obfs4 via obfs4proxy on macOS

This commit is contained in:
Miguel Jacq 2018-01-15 12:49:29 +11:00
parent 82b1860dac
commit 284213aa2d
No known key found for this signature in database
GPG key ID: 5418373DFF79BA19
4 changed files with 15 additions and 3 deletions

View file

@ -130,6 +130,11 @@ class SettingsDialog(QtWidgets.QDialog):
# OBFS4 option radio
self.tor_bridges_use_obfs4_radio = QtWidgets.QRadioButton(strings._('gui_settings_tor_bridges_obfs4_radio_option', True))
self.tor_bridges_use_obfs4_radio.toggled.connect(self.tor_bridges_use_obfs4_radio_toggled)
# if the obfs4proxy binary is missing, we can't use obfs4 transports
if system != 'Windows' and system != 'Darwin':
(self.tor_path, self.tor_geo_ip_file_path, self.tor_geo_ipv6_file_path, self.obfs4proxy_file_path) = common.get_tor_paths()
if not os.path.isfile(self.obfs4proxy_file_path):
self.tor_bridges_use_obfs4_radio.setEnabled(False)
# Custom bridges radio and textbox
self.tor_bridges_use_custom_radio = QtWidgets.QRadioButton(strings._('gui_settings_tor_bridges_custom_radio_option', True))