v1.2-0003-squash-add-a-few-comments-to-the-scripts.patch
text/x-patch
Filename: v1.2-0003-squash-add-a-few-comments-to-the-scripts.patch
Type: text/x-patch
Part: 0
Patch
Format: format-patch
Series: patch v1-0003
Subject: squash! add a few comments to the scripts
| File | + | − |
|---|---|---|
| src/test/modules/oauth_validator/t/oauth_server.py | 4 | 0 |
From 28e724e4733699d04d515e4eaff80d9b3d16d963 Mon Sep 17 00:00:00 2001
From: "Jonathan Gonzalez V." <jonathan.abdiel@gmail.com>
Date: Sat, 28 Feb 2026 06:07:11 +0100
Subject: [PATCH v1.2 3/3] squash! add a few comments to the scripts
---
src/test/modules/oauth_validator/t/oauth_server.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/test/modules/oauth_validator/t/oauth_server.py b/src/test/modules/oauth_validator/t/oauth_server.py
index 973d99b93f2..60a754ac197 100755
--- a/src/test/modules/oauth_validator/t/oauth_server.py
+++ b/src/test/modules/oauth_validator/t/oauth_server.py
@@ -5,6 +5,8 @@
# so that the Perl tests can contact it) and runs as a daemon until it is
# signaled.
#
+# This Python script must be tested and work with Python 3.6.8 and above.
+#
import base64
import functools
@@ -417,6 +419,8 @@ def main():
ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
ssl_context.load_cert_chain(ssl_cert, ssl_key)
+ # The server is listening exclusively on 127.0.0.1 to avoid problems with IPv6
+ # in some systems during the tests
s = http.server.HTTPServer(("127.0.0.1", 0), OAuthHandler)
s.socket = ssl_context.wrap_socket(s.socket, server_side=True)
--
2.51.0