1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-12 18:41:51 +00:00

Fix mlvpn compilation

This commit is contained in:
Ycarus 2018-08-25 07:50:21 +02:00
parent 301ea31b1e
commit f21191aa12

View file

@ -0,0 +1,11 @@
--- a/src/mlvpn.c 2018-08-25 07:39:53.625002006 +0200
+++ b/src/mlvpn.c 2018-08-25 07:40:35.696481066 +0200
@@ -1019,7 +1019,7 @@
#endif
if (*t->binddev) {
memset(&ifr, 0, sizeof(ifr));
- snprintf(ifr.ifr_name, sizeof(ifr.ifr_name) - 1, t->binddev);
+ snprintf(ifr.ifr_name, sizeof(ifr.ifr_name) - 1, " on %s", t->binddev);
if (setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, (void *)&ifr, sizeof(ifr)) < 0) {
log_warn(NULL, "failed to bind on interface %s", t->binddev);
}