[PATCH] Tests: renamed $proxy_port in mail_oauth.t to avoid conflicts
Maxim Dounin
mdounin at mdounin.ru
Wed Jun 3 15:49:16 UTC 2026
# HG changeset patch
# User Maxim Dounin <mdounin at mdounin.ru>
# Date 1780501739 -10800
# Wed Jun 03 18:48:59 2026 +0300
# Node ID 26a9c0862ac79ff6efd78999e4773ef4059cc600
# Parent fdb816d8d2ab966cc183e5f97252bd1aea3e6369
Tests: renamed $proxy_port in mail_oauth.t to avoid conflicts.
The $proxy_port variable is a standard variable provided by the proxy
module, and redefining it to something different might not be a good
idea.
diff --git a/mail_oauth.t b/mail_oauth.t
--- a/mail_oauth.t
+++ b/mail_oauth.t
@@ -67,7 +67,7 @@ http {
map_hash_bucket_size 64;
- map $http_auth_protocol $proxy_port {
+ map $http_auth_protocol $port {
imap %%PORT_8144%%;
pop3 %%PORT_8111%%;
smtp %%PORT_8026%%;
@@ -94,7 +94,7 @@ http {
location = /mail/auth {
add_header Auth-Status $reply;
add_header Auth-Server 127.0.0.1;
- add_header Auth-Port $proxy_port;
+ add_header Auth-Port $port;
add_header Auth-Pass $passw;
add_header Auth-Wait 1;
add_header Auth-Error-SASL $sasl;
More information about the nginx-devel
mailing list