1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Change mlvpn patch

This commit is contained in:
Ycarus (Yannick Chabanois) 2019-09-09 12:36:10 +02:00
parent f55f3d91d2
commit 1cb61463e7

View file

@ -5,7 +5,7 @@
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);
+ snprintf(ifr.ifr_name, sizeof(ifr.ifr_name) - 1, "%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);
}