This commit is contained in:
Hui Li 2020-06-12 11:48:58 +08:00
parent 1f1ae67076
commit 1f7f1d4392
1 changed files with 5 additions and 4 deletions

View File

@ -1262,10 +1262,11 @@ bool taosCheckGlobalCfg() {
taosSetAllDebugFlag(); taosSetAllDebugFlag();
} }
if (tsLocalFqdn[0] == 0) if (tsLocalFqdn[0] == 0) {
taosGetFqdn(tsLocalEp); taosGetFqdn(tsLocalFqdn);
else }
strcpy(tsLocalEp, tsLocalFqdn);
strcpy(tsLocalEp, tsLocalFqdn);
snprintf(tsLocalEp + strlen(tsLocalEp), sizeof(tsLocalEp), ":%d", tsServerPort); snprintf(tsLocalEp + strlen(tsLocalEp), sizeof(tsLocalEp), ":%d", tsServerPort);
uPrint("localEp is: %s", tsLocalEp); uPrint("localEp is: %s", tsLocalEp);