mirror of
https://github.com/openresty/openresty
synced 2024-11-14 08:45:50 +01:00
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) {
|