mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-07 08:55:12 -04:00
Support for obfs4 in custom bridges
This commit is contained in:
parent
95c8c0fb81
commit
16bd3291e3
3 changed files with 6 additions and 4 deletions
|
@ -734,7 +734,7 @@ class SettingsDialog(QtWidgets.QDialog):
|
|||
for bridge in bridges:
|
||||
if bridge != '':
|
||||
# Check the syntax of the custom bridge to make sure it looks legitimate
|
||||
pattern = re.compile("[0-9.]+:[0-9]+\s[A-Z0-9]+$")
|
||||
pattern = re.compile("(obfs4\s)?[0-9.]+:[0-9]+\s[A-Z0-9]+(.+)?$")
|
||||
if pattern.match(bridge):
|
||||
new_bridges.append(''.join(['Bridge ', bridge, '\n']))
|
||||
bridges_valid = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue