console: use unix domain socket by default. 65/2565/1
authorKrisztian Litkey <krisztian.litkey@intel.com>
Mon, 10 Dec 2012 22:43:17 +0000 (00:43 +0200)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Mon, 10 Dec 2012 23:40:23 +0000 (01:40 +0200)
src/console-client/client.c
src/plugins/plugin-console.c

index 9fa9749..e6af9fa 100644 (file)
@@ -46,7 +46,7 @@
 #define client_error mrp_log_error
 
 #define DEFAULT_PROMPT  "murphy"
-#define DEFAULT_ADDRESS "tcp4:127.0.0.1:3000"
+#define DEFAULT_ADDRESS "unxs:@murphy-console"
 
 
 /*
index 46e74d0..7ffe5bc 100644 (file)
@@ -397,7 +397,7 @@ static int console_init(mrp_plugin_t *plugin)
 
         if (!strncmp(data->address, "tcp4:", 5) ||
             !strncmp(data->address, "tcp6:", 5) ||
-            !strncmp(data->address, "unxstrm:", 8))
+            !strncmp(data->address, "unxs:", 5))
             ok = strm_setup(data);
         else
             ok = dgrm_setup(data);
@@ -438,7 +438,7 @@ static void console_exit(mrp_plugin_t *plugin)
 
 
 static mrp_plugin_arg_t console_args[] = {
-    MRP_PLUGIN_ARGIDX(ARG_ADDRESS, STRING, "address", "tcp4:127.0.0.1:3000"),
+    MRP_PLUGIN_ARGIDX(ARG_ADDRESS, STRING, "address", "unxs:@murphy-console"),
 };
 
 MURPHY_REGISTER_CORE_PLUGIN("console",