Use GT_RUNDIR for local sockets

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2018-03-14 07:06:25 +00:00
parent 66cdcf2ee3
commit b0a589b792
5 changed files with 9 additions and 5 deletions

View File

@@ -192,7 +192,7 @@ gt_bind(int argc, char **argv)
}
}
int ctl_fd = ctl_create("/run/" PACKAGE_NAME, tun_name);
int ctl_fd = ctl_create(GT_RUNDIR, tun_name);
if (ctl_fd == -1) {
perror("ctl_create");