File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,9 @@ const internalNginx = {
146
146
if ( ddnsResolver . ddnsRegex . test ( address ) ) {
147
147
const p = ddnsResolver . resolveAddress ( address )
148
148
. then ( ( resolvedIP ) => {
149
- Object . defineProperty ( client , 'resolvedAddress' , { value : resolvedIP } ) ;
149
+ if ( resolvedIP !== address ) {
150
+ Object . defineProperty ( client , 'resolvedAddress' , { value : resolvedIP } ) ;
151
+ }
150
152
return Promise . resolve ( ) ;
151
153
} ) ;
152
154
promises . push ( p ) ;
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ const ddnsResolver = {
34
34
. catch ( ( /*error*/ ) => {
35
35
// return input address in case of failure
36
36
logger . error ( `Failed to resolve IP for ${ host } ` ) ;
37
- return '127.0.0.1' ; // in case of failure, return the loopback address
37
+ return domainName ;
38
38
} ) ;
39
39
} ,
40
40
You can’t perform that action at this time.
0 commit comments