14
0
forked from pool/python-mocket

Accepting request 731639 from home:jayvdb:py-new

add patch to fix py2 bug

OBS-URL: https://build.opensuse.org/request/show/731639
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=1
This commit is contained in:
Tomáš Chvátal
2019-09-18 07:40:00 +00:00
committed by Git OBS Bridge
commit c97da4fa1a
6 changed files with 167 additions and 0 deletions

22
partial-wildcards.patch Normal file
View File

@@ -0,0 +1,22 @@
From 98b3302d9f7bef7becaacd0a86b2ba48e90ddcfb Mon Sep 17 00:00:00 2001
From: Giorgio Salluzzo <giorgio.salluzzo@gmail.com>
Date: Wed, 18 Sep 2019 08:12:54 +0200
Subject: [PATCH] Partial wildcards fix.
---
mocket/mocket.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mocket/mocket.py b/mocket/mocket.py
index 2cfe43d..df00813 100644
--- a/mocket/mocket.py
+++ b/mocket/mocket.py
@@ -210,7 +210,7 @@ def getpeercert(self, *args, **kwargs):
return {
"notAfter": shift.strftime("%b %d %H:%M:%S GMT"),
"subjectAltName": (
- ("DNS", "*%s" % self._host),
+ ("DNS", "*.%s" % self._host),
("DNS", self._host),
("DNS", "*"),
),