fixing a bug, credit to @lhy0403

This commit is contained in:
DuckSoft 2020-01-23 10:16:45 +08:00 committed by Qv2ray Bot
parent 3013c0f015
commit c1e8fd138b

View File

@ -181,7 +181,7 @@ namespace Qv2ray
// Config API
apiFailedCounter = 0;
this->apiPort = conf.apiConfig.statsPort;
auto channelAddress = "127.0.0.1" + QString::number(apiPort);
auto channelAddress = "127.0.0.1:" + QString::number(apiPort);
#ifdef WITH_LIB_GRPCPP
Channel = grpc::CreateChannel(channelAddress.toStdString(), grpc::InsecureChannelCredentials());
StatsService service;