mirror of
				https://github.com/xjasonlyu/tun2socks.git
				synced 2025-10-31 20:12:41 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			261 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			261 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| // +build windows
 | |
| 
 | |
| package core
 | |
| 
 | |
| /*
 | |
| #cgo CFLAGS: -I./c/include
 | |
| #include "lwip/sys.h"
 | |
| #include "lwip/init.h"
 | |
| */
 | |
| import "C"
 | |
| 
 | |
| func lwipInit() {
 | |
| 	C.sys_init()  // Initialze sys_arch layer, must be called before anything else.
 | |
| 	C.lwip_init() // Initialze modules.
 | |
| }
 | 
