[nextcloud-web] Re-use a named capture group
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nextcloud-web] Re-use a named capture group
- Date: Tue, 22 Jun 2021 14:59:23 +0000 (UTC)
commit f6810a1035ed2b02dc329313e73fc3fa447228b2
Author: Andrea Veri <averi redhat com>
Date: Tue Jun 22 16:59:15 2021 +0200
Re-use a named capture group
nginx/nginx.conf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index 7bb7e3e..0121129 100644
--- a/nginx/nginx.conf
+++ b/nginx/nginx.conf
@@ -29,7 +29,7 @@ http {
map $http_x_forwarded_for $custom_x_forwarded_for {
default $http_x_forwarded_for;
- ~^::ffff:.* $1;
+ "~^::ffff:(?<ip>.*)$" $ip;
}
server {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]