X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/0907aa4037b12b6b88ee24495d4577a064d4f8db..b9bafe1042839cd7295adf84448b4d08de9f5f46:/projects/sgconf/info.cpp?ds=sidebyside diff --git a/projects/sgconf/info.cpp b/projects/sgconf/info.cpp index 421e4389..cf6d44a4 100644 --- a/projects/sgconf/info.cpp +++ b/projects/sgconf/info.cpp @@ -2,6 +2,7 @@ #include "api_action.h" #include "options.h" +#include "makeproto.h" #include "config.h" #include "stg/servconf.h" @@ -42,13 +43,7 @@ bool InfoFunction(const SGCONF::CONFIG & config, const std::string& /*arg*/, const std::map & /*options*/) { -STG::ServConf proto(config.server.data(), - config.port.data(), - config.localAddress.data(), - config.localPort.data(), - config.userName.data(), - config.userPass.data()); -return proto.ServerInfo(InfoCallback, NULL) == STG::st_ok; +return makeProto(config).ServerInfo(InfoCallback, NULL) == STG::st_ok; } }