X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/21baffc9c880ba71baaddad5c4cf2b32352823ff..32d9767958eece65c3d6feb02419a3f003dc2f0a:/projects/sgconf/xml.cpp?ds=sidebyside
diff --git a/projects/sgconf/xml.cpp b/projects/sgconf/xml.cpp
index abf2ccc6..93a06e23 100644
--- a/projects/sgconf/xml.cpp
+++ b/projects/sgconf/xml.cpp
@@ -2,6 +2,7 @@
#include "api_action.h"
#include "options.h"
+#include "makeproto.h"
#include "config.h"
#include "stg/servconf.h"
@@ -87,13 +88,7 @@ bool RawXMLFunction(const SGCONF::CONFIG & config,
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.RawXML(arg, RawXMLCallback, NULL) == STG::st_ok;
+return makeProto(config).RawXML(arg, RawXMLCallback, NULL) == STG::st_ok;
}
}