diff options
-rw-r--r-- | proto/wireguard/wireguard.c | 5 | ||||
-rw-r--r-- | sysdep/unix/main.c | 3 | ||||
-rw-r--r-- | sysdep/unix/wg_user.h | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/proto/wireguard/wireguard.c b/proto/wireguard/wireguard.c index 92b1171b..9129e224 100644 --- a/proto/wireguard/wireguard.c +++ b/proto/wireguard/wireguard.c @@ -149,8 +149,8 @@ wg_if_notify(struct proto *P, unsigned flags, struct iface *i) { DBG("WG: IF_CHANGE_UP %s\n", i->name); - int res = set_device(p); - WG_TRACE(D_EVENTS, "WG: wg_set_device %d", res); + /* int res = set_device(p); */ + /* WG_TRACE(D_EVENTS, "WG: wg_set_device %d", res); */ } } @@ -738,6 +738,7 @@ wg_shutdown(struct proto *P) struct wg_proto *p = (struct wg_proto*)P; wg_device *dev = NULL; + og_msg(L_INFO "wg_shutdown"); WG_TRACE(D_EVENTS, "WG: wg_shutdown"); if (get_device(p, &p->dev, cf->ifname) >= 0) { diff --git a/sysdep/unix/main.c b/sysdep/unix/main.c index 1d258f4c..df59daf8 100644 --- a/sysdep/unix/main.c +++ b/sysdep/unix/main.c @@ -567,6 +567,7 @@ unlink_pid_file(void) void cmd_shutdown(void) { + log_msg(L_INFO "cmd_shutdown"); if (cli_access_restricted()) return; @@ -577,6 +578,7 @@ cmd_shutdown(void) void async_shutdown(void) { + log_msg(L_INFO "async_shutdown"); DBG("Shutting down...\n"); order_shutdown(0); } @@ -584,6 +586,7 @@ async_shutdown(void) void sysdep_shutdown_done(void) { + log_msg(L_INFO "sysdep_shutdown_done"); unlink_pid_file(); unlink(path_control_socket); log_msg(L_FATAL "Shutdown completed"); diff --git a/sysdep/unix/wg_user.h b/sysdep/unix/wg_user.h index a5e4251a..6ecceecb 100644 --- a/sysdep/unix/wg_user.h +++ b/sysdep/unix/wg_user.h @@ -3,7 +3,7 @@ #include "sysdep/config.h" -#define SOCKET_PATH PATH_RUNSTATEDIR "/wireguard/" +#define SOCKET_PATH PATH_RUNSTATEDIR "/" struct pool; struct wg_device; |