minor changes
This commit is contained in:
parent
a1b1b8ab11
commit
091271b02d
|
@ -129,7 +129,7 @@
|
||||||
# mqttPort 1883
|
# mqttPort 1883
|
||||||
|
|
||||||
# mqtt topic
|
# mqtt topic
|
||||||
# mqttTopic /weather/loop
|
# mqttTopic /test
|
||||||
|
|
||||||
# the compressed rpc message, option:
|
# the compressed rpc message, option:
|
||||||
# -1 (no compression)
|
# -1 (no compression)
|
||||||
|
|
|
@ -1298,21 +1298,21 @@ bool taosCheckGlobalCfg() {
|
||||||
taosGetFqdn(tsLocalFqdn);
|
taosGetFqdn(tsLocalFqdn);
|
||||||
}
|
}
|
||||||
|
|
||||||
snprintf(tsLocalEp, sizeof(tsLocalEp), "%s:%d", tsLocalFqdn, tsServerPort);
|
snprintf(tsLocalEp, sizeof(tsLocalEp), "%s:%u", tsLocalFqdn, tsServerPort);
|
||||||
uInfo("localEp is: %s", tsLocalEp);
|
uInfo("localEp is: %s", tsLocalEp);
|
||||||
|
|
||||||
if (tsFirst[0] == 0) {
|
if (tsFirst[0] == 0) {
|
||||||
strcpy(tsFirst, tsLocalEp);
|
strcpy(tsFirst, tsLocalEp);
|
||||||
} else {
|
} else {
|
||||||
taosGetFqdnPortFromEp(tsFirst, fqdn, &port);
|
taosGetFqdnPortFromEp(tsFirst, fqdn, &port);
|
||||||
snprintf(tsFirst, sizeof(tsFirst), "%s:%d", fqdn, port);
|
snprintf(tsFirst, sizeof(tsFirst), "%s:%u", fqdn, port);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tsSecond[0] == 0) {
|
if (tsSecond[0] == 0) {
|
||||||
strcpy(tsSecond, tsLocalEp);
|
strcpy(tsSecond, tsLocalEp);
|
||||||
} else {
|
} else {
|
||||||
taosGetFqdnPortFromEp(tsSecond, fqdn, &port);
|
taosGetFqdnPortFromEp(tsSecond, fqdn, &port);
|
||||||
snprintf(tsSecond, sizeof(tsSecond), "%s:%d", fqdn, port);
|
snprintf(tsSecond, sizeof(tsSecond), "%s:%u", fqdn, port);
|
||||||
}
|
}
|
||||||
|
|
||||||
taosGetSystemInfo();
|
taosGetSystemInfo();
|
||||||
|
|
Loading…
Reference in New Issue