mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 03:54:50 +00:00
add a try/except block testing for openssl support before adding it as an option to the commandline
This commit is contained in:
parent
e9541ab7c6
commit
9762853d32
1 changed files with 7 additions and 2 deletions
|
@ -54,8 +54,13 @@ class Web(_UI):
|
|||
group.add_option("-p", "--port", dest="port", type="int",
|
||||
help="Sets the port to be used for the webserver",
|
||||
action="store", default=None)
|
||||
group.add_option("--ssl", dest="ssl", action="store_true",
|
||||
help="Forces the webserver to use ssl", default=False)
|
||||
try:
|
||||
import OpenSSL
|
||||
except:
|
||||
pass
|
||||
else:
|
||||
group.add_option("--ssl", dest="ssl", action="store_true",
|
||||
help="Forces the webserver to use ssl", default=False)
|
||||
self.parser.add_option_group(group)
|
||||
|
||||
@property
|
||||
|
|
Loading…
Add table
Reference in a new issue