enh(rpc): validate fqdn
This commit is contained in:
parent
f2eca15fe2
commit
78c617a9f1
|
@ -111,10 +111,6 @@ void shellNettestHandler(int32_t signum, void *sigInfo, void *context) { shellEx
|
||||||
static void shellWorkAsServer() {
|
static void shellWorkAsServer() {
|
||||||
SShellArgs *pArgs = &shell.args;
|
SShellArgs *pArgs = &shell.args;
|
||||||
|
|
||||||
// char fqdn[TSDB_FQDN_LEN] = {0};
|
|
||||||
/// tstrncpy(fqdn, pArgs->host, TSDB_FQDN_LEN);
|
|
||||||
// strtok(fqdn, ":");
|
|
||||||
|
|
||||||
if (pArgs->port == 0) {
|
if (pArgs->port == 0) {
|
||||||
pArgs->port = tsServerPort;
|
pArgs->port = tsServerPort;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue