git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update CMakeLists.txt
[stg.git]
/
projects
/
sgconf
/
info.cpp
diff --git
a/projects/sgconf/info.cpp
b/projects/sgconf/info.cpp
index 421e438900e3ae44db218015a02db9f85e1d5233..cf6d44a451131cea3d5f5a79102a1a7a8c2b2a06 100644
(file)
--- a/
projects/sgconf/info.cpp
+++ b/
projects/sgconf/info.cpp
@@
-2,6
+2,7
@@
#include "api_action.h"
#include "options.h"
#include "api_action.h"
#include "options.h"
+#include "makeproto.h"
#include "config.h"
#include "stg/servconf.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<std::string, std::string> & /*options*/)
{
const std::string& /*arg*/,
const std::map<std::string, std::string> & /*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;
}
}
}
}