Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Re2o
mail-server
Commits
c89d3ad1
Commit
c89d3ad1
authored
Jun 13, 2020
by
Hugo Levy-Falk
Committed by
root
Jun 13, 2020
Browse files
I need TLS
parent
1856ef7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.py
View file @
c89d3ad1
...
...
@@ -21,8 +21,12 @@ config.read(path+'/config.ini')
api_hostname
=
config
.
get
(
'Re2o'
,
'hostname'
)
api_password
=
config
.
get
(
'Re2o'
,
'password'
)
api_username
=
config
.
get
(
'Re2o'
,
'username'
)
if
'use_tls'
in
config
[
'Re2o'
]:
use_tls
=
config
.
get
(
'Re2o'
,
'use_tls'
)
else
:
us_tls
=
False
api_client
=
Re2oAPIClient
(
api_hostname
,
api_username
,
api_password
,
use_tls
=
False
)
api_client
=
Re2oAPIClient
(
api_hostname
,
api_username
,
api_password
,
use_tls
=
use_tls
)
client_hostname
=
socket
.
gethostname
().
split
(
'.'
,
1
)[
0
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment