X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fvde_device.c;h=6d854a61d644e86f23a73575c705fc28f71c427b;hp=d97a694fb1b27ad49bbd71531fb184737bceffd6;hb=061c3fcaf9c63978009dc2707071f8daef8751b2;hpb=3fae14fae5a347823679ef694ab630b4991a201d diff --git a/src/vde_device.c b/src/vde_device.c index d97a694f..6d854a61 100644 --- a/src/vde_device.c +++ b/src/vde_device.c @@ -33,7 +33,7 @@ static struct vdepluglib plug; static struct vdeconn *conn = NULL; static int port = 0; static char *group = NULL; -static char *device_info; +static const char *device_info = "VDE socket"; extern char *identname; extern volatile bool running; @@ -50,7 +50,7 @@ static bool setup_device(void) { } if(!get_config_string(lookup_config(config_tree, "Device"), &device)) { - xasprintf(&device, LOCALSTATEDIR "/run/vde.ctl"); + xasprintf(&device, RUNSTATEDIR "/vde.ctl"); } get_config_string(lookup_config(config_tree, "Interface"), &iface); @@ -59,8 +59,6 @@ static bool setup_device(void) { get_config_string(lookup_config(config_tree, "VDEGroup"), &group); - device_info = "VDE socket"; - struct vde_open_args args = { .port = port, .group = group,