mirror of
https://github.com/yarrick/iodine.git
synced 2024-12-03 15:05:17 +00:00
prepend correct header
This commit is contained in:
parent
e5138b6adb
commit
51bdcd9656
@ -77,8 +77,8 @@ tunnel(int tun_fd, int dns_fd)
|
||||
if(FD_ISSET(dns_fd, &fds)) {
|
||||
read = dnsd_read(dns_fd, frame->data, 64*1024-4);
|
||||
if(read > 0) {
|
||||
frame->flags = 0x0000;
|
||||
frame->proto = 0x0800;
|
||||
frame->flags = htons(0x0000);
|
||||
frame->proto = htons(0x0800);
|
||||
write_tun(tun_fd, frame, read + 4);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user