mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-06 17:26:58 +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.
|
|
}
|