mirror of
https://github.com/bol-van/zapret.git
synced 2025-02-17 02:22:21 +03:00
Compare commits
5 Commits
da5b856ab5
...
f5f210b30c
Author | SHA1 | Date | |
---|---|---|---|
|
f5f210b30c | ||
|
c05e62586b | ||
|
742b3a6db0 | ||
|
b7d34740f9 | ||
|
79da7c40db |
Binary file not shown.
Binary file not shown.
@ -54,7 +54,8 @@
|
||||
к сторонним серверам - через специальные средства шифрования DNS запросов, такие как dnscrypt, DoT, DoH.
|
||||
В современных броузерах чаще всего DoH включен по умолчанию, но curl будет использовать обычный системный DNS.
|
||||
Новые билды win10 и win11 поддерживают системные DoH из коробки. Они не настроены по умолчанию.
|
||||
Гуглите как их настроить и включить.
|
||||
|
||||
Тут все разжевано как и где это включается : https://hackware.ru/?p=13707
|
||||
|
||||
6) blockcheck позволяет выявить рабочую стратегию обхода блокировок.
|
||||
Лог скрипта будет сохранен в blockcheck\blockcheck.log.
|
||||
|
@ -24,7 +24,7 @@ mac: $(SRC_FILES)
|
||||
rm -f dvtwsx dvtwsa
|
||||
|
||||
cygwin:
|
||||
$(CC) -s $(CFLAGS) $(CFLAGS_CYGWIN) -o winws $(SRC_FILES) $(LDFLAGS) $(LIBS_CYGWIN)
|
||||
$(CC) -s $(CFLAGS) $(CFLAGS_CYGWIN) -o winws $(SRC_FILES) $(LDFLAGS) $(LIBS_CYGWIN) winmanifest.o
|
||||
|
||||
clean:
|
||||
rm -f nfqws dvtws winws.exe *.o
|
||||
rm -f nfqws dvtws winws.exe
|
||||
|
@ -1540,10 +1540,6 @@ int main(int argc, char **argv)
|
||||
ex:
|
||||
rawsend_cleanup();
|
||||
cleanup_params();
|
||||
#ifdef __CYGWIN__
|
||||
service_stopped();
|
||||
|
||||
#endif
|
||||
return result;
|
||||
exiterr:
|
||||
result = 1;
|
||||
|
20
nfq/win.c
20
nfq/win.c
@ -1,9 +1,6 @@
|
||||
#ifdef __CYGWIN__
|
||||
|
||||
#include <unistd.h>
|
||||
#include <signal.h>
|
||||
#include <windows.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "win.h"
|
||||
#include "nfqws.h"
|
||||
@ -19,8 +16,6 @@ void service_main(int argc __attribute__((unused)), char *argv[] __attribute__((
|
||||
|
||||
bool service_run(int argc, char *argv[])
|
||||
{
|
||||
int i;
|
||||
|
||||
SERVICE_TABLE_ENTRY ServiceTable[] = {
|
||||
{SERVICE_NAME, (LPSERVICE_MAIN_FUNCTION)service_main},
|
||||
{NULL, NULL}
|
||||
@ -37,10 +32,6 @@ static void service_set_status(DWORD state)
|
||||
ServiceStatus.dwCurrentState = state;
|
||||
SetServiceStatus(hStatus, &ServiceStatus);
|
||||
}
|
||||
void service_stopped()
|
||||
{
|
||||
service_set_status(SERVICE_STOPPED);
|
||||
}
|
||||
|
||||
// Control handler function
|
||||
void service_controlhandler(DWORD request)
|
||||
@ -50,18 +41,13 @@ void service_controlhandler(DWORD request)
|
||||
case SERVICE_CONTROL_STOP:
|
||||
case SERVICE_CONTROL_SHUTDOWN:
|
||||
bQuit = true;
|
||||
service_set_status(SERVICE_STOP_PENDING);
|
||||
break;
|
||||
default:
|
||||
// Report current status
|
||||
SetServiceStatus(hStatus, &ServiceStatus);
|
||||
ServiceStatus.dwCurrentState = SERVICE_STOP_PENDING;
|
||||
break;
|
||||
}
|
||||
return;
|
||||
SetServiceStatus(hStatus, &ServiceStatus);
|
||||
}
|
||||
|
||||
void service_main(int argc __attribute__((unused)),
|
||||
char *argv[] __attribute__((unused)))
|
||||
void service_main(int argc __attribute__((unused)), char *argv[] __attribute__((unused)))
|
||||
{
|
||||
ServiceStatus.dwServiceType = SERVICE_WIN32_OWN_PROCESS;
|
||||
ServiceStatus.dwCurrentState = SERVICE_RUNNING;
|
||||
|
@ -5,7 +5,6 @@
|
||||
#include <stdbool.h>
|
||||
|
||||
bool service_run();
|
||||
void service_stopped();
|
||||
|
||||
#endif
|
||||
|
||||
|
BIN
nfq/winmanifest.o
Normal file
BIN
nfq/winmanifest.o
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user