Commit 066cb05d authored by Jelte Jansen's avatar Jelte Jansen

use the correct socket file to pass to the XfroutClient in b10-auth when run...

use the correct socket file to pass to the XfroutClient in b10-auth when run from source (ticket #283)


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@2705 e5f2f494-b856-4b98-b285-d166d9295462
parent d1340000
......@@ -156,7 +156,13 @@ main(int argc, char* argv[]) {
Session* xfrin_session = NULL;
bool xfrin_session_established = false; // XXX (see Trac #287)
ModuleCCSession* config_session = NULL;
XfroutClient xfrout_client(UNIX_SOCKET_FILE);
string xfrout_socket_path;
if (getenv("B10_FROM_BUILD") != NULL) {
xfrout_socket_path = string(getenv("B10_FROM_BUILD")) + "/auth_xfrout_conn";
} else {
xfrout_socket_path = UNIX_SOCKET_FILE;
}
XfroutClient xfrout_client(xfrout_socket_path);
try {
string specfile;
if (getenv("B10_FROM_BUILD")) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment