summaryrefslogtreecommitdiff
path: root/proto/wireguard/wireguard.c
diff options
context:
space:
mode:
Diffstat (limited to 'proto/wireguard/wireguard.c')
-rw-r--r--proto/wireguard/wireguard.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/proto/wireguard/wireguard.c b/proto/wireguard/wireguard.c
index a998f014..ddb3e061 100644
--- a/proto/wireguard/wireguard.c
+++ b/proto/wireguard/wireguard.c
@@ -15,13 +15,13 @@
#include "wireguard.h"
#include "proto/bgp/bgp.h"
-#define SOCKET_PATH PATH_RUNSTATEDIR "/wireguard/"
+#define SOCKET_PATH PATH_RUNSTATEDIR //"/wireguard/"
static
char *get_socket_path(struct wg_proto *p, char *buf, uint size)
{
struct wg_config *c = (struct wg_config *) p->p.cf;
- bsnprintf(buf, size, SOCKET_PATH "%s.sock", c->ifname);
+ bsnprintf(buf, size, SOCKET_PATH "/%s.sock", c->ifname);
return buf;
}
@@ -222,7 +222,7 @@ user_set_device(struct wg_proto *p)
struct wg_config *c = (struct wg_config *) p->p.cf;
char path[sizeof(struct sockaddr_un)];
- bsnprintf(path, sizeof(path), SOCKET_PATH "%s.sock", c->ifname);
+ bsnprintf(path, sizeof(path), SOCKET_PATH "/%s.sock", c->ifname);
struct birdsock *sock = sk_new(p->p.pool);
sock->rx_hook = user_rx_hook;
@@ -376,8 +376,8 @@ wg_if_notify(struct proto *P, unsigned flags, struct iface *i)
{
debug("WG: IF_CHANGE_UP %s\n", i->name);
- int res = set_device(p);
- log(L_TRACE "WG: wg_set_device %d", res);
+ /* int res = set_device(p); */
+ /* log(L_TRACE "WG: wg_set_device %d", res); */
}
}