From 1f7f1d4392182909033e74181d5615ccf7fb8c2b Mon Sep 17 00:00:00 2001 From: Hui Li Date: Fri, 12 Jun 2020 11:48:58 +0800 Subject: [PATCH] [TD-604] --- src/common/src/tglobal.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/common/src/tglobal.c b/src/common/src/tglobal.c index f44af78e9a..86fc6deb1b 100644 --- a/src/common/src/tglobal.c +++ b/src/common/src/tglobal.c @@ -1262,10 +1262,11 @@ bool taosCheckGlobalCfg() { taosSetAllDebugFlag(); } - if (tsLocalFqdn[0] == 0) - taosGetFqdn(tsLocalEp); - else - strcpy(tsLocalEp, tsLocalFqdn); + if (tsLocalFqdn[0] == 0) { + taosGetFqdn(tsLocalFqdn); + } + + strcpy(tsLocalEp, tsLocalFqdn); snprintf(tsLocalEp + strlen(tsLocalEp), sizeof(tsLocalEp), ":%d", tsServerPort); uPrint("localEp is: %s", tsLocalEp); -- GitLab