mirror of
https://github.com/qtgolang/SunnyNet.git
synced 2026-08-30 22:11:29 -07:00
2025-10-23
This commit is contained in:
@@ -6,12 +6,7 @@ package WinDivert
|
||||
// #cgo CFLAGS: -I${SRCDIR}/divert -Wno-incompatible-pointer-types
|
||||
// #include "windivert.h"
|
||||
import "C"
|
||||
import "github.com/qtgolang/SunnyNet/src/ProcessDrv/tun/WinDivert/divert"
|
||||
|
||||
func init() {
|
||||
divert.Init()
|
||||
}
|
||||
|
||||
|
||||
const (
|
||||
LayerNetwork = Layer(C.WINDIVERT_LAYER_NETWORK)
|
||||
LayerNetworkForward = Layer(C.WINDIVERT_LAYER_NETWORK_FORWARD)
|
||||
|
||||
@@ -1,12 +1,3 @@
|
||||
//go:build windows
|
||||
|
||||
package divert
|
||||
|
||||
import "C"
|
||||
|
||||
var i int
|
||||
|
||||
func Init() int {
|
||||
i++
|
||||
return i
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user