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:
parent
301ea31b1e
commit
f21191aa12
1 changed files with 11 additions and 0 deletions
11
mlvpn/patches/021-mlvpn-bind.patch
Normal file
11
mlvpn/patches/021-mlvpn-bind.patch
Normal 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);
|
||||
}
|
Loading…
Reference in a new issue