mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Add again mlvpn patch
This commit is contained in:
		
							parent
							
								
									cd8958b197
								
							
						
					
					
						commit
						f55f3d91d2
					
				
					 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…
	
	Add table
		Add a link
		
	
		Reference in a new issue