Source file
src/net/hook_windows.go
1
2
3
4
5 package net
6
7 import (
8 "internal/syscall/windows"
9 "syscall"
10 )
11
12 var (
13 hostsFilePath = windows.GetSystemDirectory() + "/Drivers/etc/hosts"
14
15
16 wsaSocketFunc func(int32, int32, int32, *syscall.WSAProtocolInfo, uint32, uint32) (syscall.Handle, error) = windows.WSASocket
17 connectFunc func(syscall.Handle, syscall.Sockaddr) error = syscall.Connect
18 listenFunc func(syscall.Handle, int) error = syscall.Listen
19 )
20
View as plain text