X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/62eea3f0caac1da5cef3328538d1d7fcbcc3463a..6c4d31bf18078de98e71575d4b032df303f23a3a:/projects/sgconf/admins.cpp?ds=inline diff --git a/projects/sgconf/admins.cpp b/projects/sgconf/admins.cpp index 7161e1ef..c16e6e2b 100644 --- a/projects/sgconf/admins.cpp +++ b/projects/sgconf/admins.cpp @@ -120,6 +120,8 @@ bool GetAdminsFunction(const SGCONF::CONFIG & config, { STG::SERVCONF proto(config.server.data(), config.port.data(), + config.localAddress.data(), + config.localPort.data(), config.userName.data(), config.userPass.data()); return proto.GetAdmins(GetAdminsCallback, NULL) == STG::st_ok; @@ -131,6 +133,8 @@ bool GetAdminFunction(const SGCONF::CONFIG & config, { STG::SERVCONF proto(config.server.data(), config.port.data(), + config.localAddress.data(), + config.localPort.data(), config.userName.data(), config.userPass.data()); // STG currently doesn't support . @@ -145,6 +149,8 @@ bool DelAdminFunction(const SGCONF::CONFIG & config, { STG::SERVCONF proto(config.server.data(), config.port.data(), + config.localAddress.data(), + config.localPort.data(), config.userName.data(), config.userPass.data()); return proto.DelAdmin(arg, SimpleCallback, NULL) == STG::st_ok; @@ -160,6 +166,8 @@ SGCONF::MaybeSet(options, "priv", conf.priv, ConvPriv); SGCONF::MaybeSet(options, "password", conf.password); STG::SERVCONF proto(config.server.data(), config.port.data(), + config.localAddress.data(), + config.localPort.data(), config.userName.data(), config.userPass.data()); return proto.AddAdmin(arg, conf, SimpleCallback, NULL) == STG::st_ok; @@ -175,6 +183,8 @@ SGCONF::MaybeSet(options, "priv", conf.priv, ConvPriv); SGCONF::MaybeSet(options, "password", conf.password); STG::SERVCONF proto(config.server.data(), config.port.data(), + config.localAddress.data(), + config.localPort.data(), config.userName.data(), config.userPass.data()); return proto.ChgAdmin(conf, SimpleCallback, NULL) == STG::st_ok;