mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2026-01-03 07:08:46 +03:00
Be more verbose
I have tired to always enable DEBUG and I dont see the reason why verbosity should be disabled by default
This commit is contained in:
@@ -30,6 +30,8 @@ Run an application with `youtubeUnblock 537` where `537` stands for the queue-nu
|
|||||||
|
|
||||||
Systemd daemon is also available. Do `systemctl enable --now youtubeUnblock.service` after installation (uses queue-num `537`). Please, note that systemd will configure iptables automatically. If you have troubles with it, delete ExecStartPre and ExecStop from youtubeUnblock.service and configure iptables manually (may be a useful case for nftables).
|
Systemd daemon is also available. Do `systemctl enable --now youtubeUnblock.service` after installation (uses queue-num `537`). Please, note that systemd will configure iptables automatically. If you have troubles with it, delete ExecStartPre and ExecStop from youtubeUnblock.service and configure iptables manually (may be a useful case for nftables).
|
||||||
|
|
||||||
|
If you don't want youtubeUnblock to log on each googlevideo request pass -DSILENT as CFLAGS.
|
||||||
|
|
||||||
Also DNS over HTTPS (DOH) is preferred for additional anonimity.
|
Also DNS over HTTPS (DOH) is preferred for additional anonimity.
|
||||||
|
|
||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
|
|||||||
@@ -41,6 +41,9 @@
|
|||||||
#define FAKE_SNI
|
#define FAKE_SNI
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef SILENT
|
||||||
|
#define DEBUG
|
||||||
|
#endif
|
||||||
|
|
||||||
static struct {
|
static struct {
|
||||||
uint32_t queue_num;
|
uint32_t queue_num;
|
||||||
@@ -721,7 +724,10 @@ static int process_packet(const struct packet_data packet) {
|
|||||||
int ret = 0;
|
int ret = 0;
|
||||||
#ifdef FAKE_SNI
|
#ifdef FAKE_SNI
|
||||||
struct pkt_buff *fake_sni = gen_fake_sni(ip_header, tcph);
|
struct pkt_buff *fake_sni = gen_fake_sni(ip_header, tcph);
|
||||||
if (fake_sni == NULL) goto fallback;
|
if (fake_sni == NULL) {
|
||||||
|
perror("gen_fake_sni");
|
||||||
|
goto fallback;
|
||||||
|
}
|
||||||
|
|
||||||
ret = send_raw_socket(fake_sni);
|
ret = send_raw_socket(fake_sni);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user