diff --git a/src/kit/taosdemo/taosdemo.c b/src/kit/taosdemo/taosdemo.c index 97cc7f06f2cff3e165426c163bc8fb9d9ac6dd0e..2f8c844f1a2811c272102b0de87f6b023273620f 100644 --- a/src/kit/taosdemo/taosdemo.c +++ b/src/kit/taosdemo/taosdemo.c @@ -10302,7 +10302,8 @@ static void startMultiThreadInsertData(int threads, char* db_name, b = ntables % threads; } - if (g_args.iface == REST_IFACE) { + if (g_args.iface == REST_IFACE || + ((stbInfo) && (stbInfo->iface == REST_IFACE)) ) { if (convertHostToServAddr( g_Dbs.host, g_Dbs.port, &(g_Dbs.serv_addr)) != 0) { ERROR_EXIT("convert host to server address");