mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2025-12-31 21:58:51 +03:00
Add option to disable ipv6, document ipv6
This commit is contained in:
@@ -579,10 +579,12 @@ int main(int argc, char *argv[]) {
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (open_raw6_socket() < 0) {
|
||||
perror("Unable to open raw socket for ipv6");
|
||||
close_raw_socket();
|
||||
exit(EXIT_FAILURE);
|
||||
if (config.use_ipv6) {
|
||||
if (open_raw6_socket() < 0) {
|
||||
perror("Unable to open raw socket for ipv6");
|
||||
close_raw_socket();
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
|
||||
struct queue_res *qres = &defqres;
|
||||
@@ -618,7 +620,8 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
|
||||
close_raw_socket();
|
||||
close_raw6_socket();
|
||||
if (config.use_ipv6)
|
||||
close_raw6_socket();
|
||||
|
||||
return -qres->status;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user