]> code.citadel.org Git - citadel.git/blobdiff - citadel/sendcommand.c
* Allow connect on unix domain sockets to Citadels in other directories
[citadel.git] / citadel / sendcommand.c
index 599655dd7a81c9d9b7585dba9a9cb9c99719be82..8bbed185d4d128b9f9e3e86ee1f2574d5275950c 100644 (file)
@@ -110,8 +110,8 @@ void np_attach_to_server(void)
        {"sendcommand", NULL};
        int r;
 
-       strcpy(hostbuf, "localhost");
-       strcpy(portbuf, "citadel");
+       strcpy(hostbuf, UDS);   /* Only run on a unix domain socket */
+       strcpy(portbuf, ".");   /* IPGM will refuse to run on the network */
        fprintf(stderr, "Attaching to server...\n");
        ipc = CtdlIPC_new(1, args, hostbuf, portbuf);
        CtdlIPC_getline(ipc, buf);