mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2024-12-22 06:15:31 +00:00
Userspace: handle --no-ipv6 for PF_INET6 UNBIND/BIND_PF
This commit is contained in:
parent
93972f8404
commit
ae9592c71f
@ -497,6 +497,7 @@ int init_queue(int queue_num) {
|
|||||||
goto die;
|
goto die;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (config.use_ipv6) {
|
||||||
nlh = nfq_nlmsg_put(buf, NFQNL_MSG_CONFIG, queue_num);
|
nlh = nfq_nlmsg_put(buf, NFQNL_MSG_CONFIG, queue_num);
|
||||||
nfq_nlmsg_cfg_put_cmd(nlh, PF_INET6, NFQNL_CFG_CMD_PF_UNBIND);
|
nfq_nlmsg_cfg_put_cmd(nlh, PF_INET6, NFQNL_CFG_CMD_PF_UNBIND);
|
||||||
|
|
||||||
@ -512,6 +513,7 @@ int init_queue(int queue_num) {
|
|||||||
perror("mnl_socket_send");
|
perror("mnl_socket_send");
|
||||||
goto die;
|
goto die;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
/* End of support for kernel versions < 3.8 */
|
/* End of support for kernel versions < 3.8 */
|
||||||
|
|
||||||
nlh = nfq_nlmsg_put(buf, NFQNL_MSG_CONFIG, queue_num);
|
nlh = nfq_nlmsg_put(buf, NFQNL_MSG_CONFIG, queue_num);
|
||||||
|
Loading…
Reference in New Issue
Block a user