mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-25 15:41:26 +00:00
Simplify opening UDP socket in win32 tun reader
This commit is contained in:
parent
d0fb85e8cf
commit
95dedf51db
|
@ -285,12 +285,9 @@ DWORD WINAPI tun_reader(LPVOID arg)
|
||||||
int len;
|
int len;
|
||||||
int res;
|
int res;
|
||||||
OVERLAPPED olpd;
|
OVERLAPPED olpd;
|
||||||
struct sockaddr_storage addr;
|
|
||||||
int addr_len;
|
|
||||||
int sock;
|
int sock;
|
||||||
|
|
||||||
addr_len = get_addr("127.0.0.1", 0, AF_INET, 0, &addr);
|
sock = open_dns_from_host("127.0.0.1", 0, AF_INET, 0);
|
||||||
sock = open_dns(&addr, addr_len);
|
|
||||||
|
|
||||||
olpd.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
|
olpd.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue