Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/acme
diff options
context:
space:
mode:
authorMiltos <miltos@allamanis.com>2021-01-14 12:39:42 +0300
committerGitHub <noreply@github.com>2021-01-14 12:39:42 +0300
commit261b5a76d8c000ce1354e0a0437b9c2f846fc6a3 (patch)
treeeeb0574c7bf3a0c4d3eb90c24bdfbc8494a443fb /acme
parent2fca48caaa8529432d003b0fdc880b673f6be1f5 (diff)
Minor fix to logging message (#8605)
* Minor fix to logging message the `if socket_kwargs` will always evaluate to `true`. * Update acme/acme/crypto_util.py Co-authored-by: alexzorin <alex@zor.io>
Diffstat (limited to 'acme')
-rw-r--r--acme/acme/crypto_util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/acme/acme/crypto_util.py b/acme/acme/crypto_util.py
index cabc7f4d1..4b58db328 100644
--- a/acme/acme/crypto_util.py
+++ b/acme/acme/crypto_util.py
@@ -166,7 +166,7 @@ def probe_sni(name, host, port=443, timeout=300, # pylint: disable=too-many-argu
" from {0}:{1}".format(
source_address[0],
source_address[1]
- ) if socket_kwargs else ""
+ ) if any(source_address) else ""
)
socket_tuple = (host, port) # type: Tuple[str, int]
sock = socket.create_connection(socket_tuple, **socket_kwargs) # type: ignore