mirror of https://github.com/openresty/openresty
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
498 B
C
24 lines
498 B
C
diff --git src/core/ngx_resolver.c src/core/ngx_resolver.c
|
|
--- src/core/ngx_resolver.c
|
|
+++ src/core/ngx_resolver.c
|
|
@@ -4008,15 +4008,15 @@ done:
|
|
n = *src++;
|
|
|
|
} else {
|
|
+ if (dst != name->data) {
|
|
+ *dst++ = '.';
|
|
+ }
|
|
+
|
|
ngx_strlow(dst, src, n);
|
|
dst += n;
|
|
src += n;
|
|
|
|
n = *src++;
|
|
-
|
|
- if (n != 0) {
|
|
- *dst++ = '.';
|
|
- }
|
|
}
|
|
|
|
if (n == 0) {
|