๐
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Makefile | 10 ++--- | |
README.md | 97 ++++++++++++++++++++++++++++++---------- | |
src/core/src/hev-socks5-server.c | 42 ++++++++++------- | |
3 files changed, 103 insertions(+), 46 deletions(-) | |
diff --git a/Makefile b/Makefile | |
index 4fec989e7531d10c..db449cb220f2e6c7 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -10,10 +10,10 @@ CCFLAGS=-O3 -pipe -Wall -Werror $(CFLAGS) \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[pid 7604] [00000000006aa98f] accept(21, NULL, NULL) = 94 | |
[pid 7604] [00000000006a821f] ioctl(94, FIONBIO, [1]) = 0 | |
[pid 7604] [00000000006aa98f] accept(21, NULL, NULL) = -1 EAGAIN (Resource temporarily unavailable) | |
[pid 7604] [00000000006aa4ce] epoll_ctl(22, EPOLL_CTL_ADD, 94, {EPOLLIN|EPOLLOUT|EPOLLET, {u32=2415928312, u64=140499386115064}}) = 0 | |
[pid 7604] [00000000006aabbe] recvfrom(94, "w\1", 2, 0, NULL, NULL) = 2 | |
[pid 7604] [00000000006aabbe] recvfrom(94, "\0", 1, 0, NULL, NULL) = 1 | |
[pid 7604] [00000000006aadfe] sendto(94, "\5\0", 2, 0, NULL, 0) = 2 | |
[pid 7604] [00000000006aabbe] recvfrom(94, 0x7fc8a6570c10, 4, 0, NULL, NULL) = -1 EAGAIN (Resource temporarily unavailable) | |
[pid 7604] [00000000006aabbe] recvfrom(94, 0x7fc8a6570c10, 4, 0, NULL, NULL) = -1 EAGAIN (Resource temporarily unavailable) | |
[pid 7604] [00000000006aabbe] recvfrom(94, "\5\1\0\3", 4, 0, NULL, NULL) = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int OK = 0; | |
int ERR_IO_PENDING = -1; | |
int ERR_FAILED = -2; | |
int ERR_ABORTED = -3; | |
int ERR_INVALID_ARGUMENT = -4; | |
int ERR_INVALID_HANDLE = -5; | |
int ERR_FILE_NOT_FOUND = -6; | |
int ERR_TIMED_OUT = -7; | |
int ERR_FILE_TOO_BIG = -8; | |
int ERR_UNEXPECTED = -9; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: GPL-2.0-only | |
/* | |
* Copyright (C) 2023 Ammar Faizi <[email protected]> | |
* Copyright (C) 2023 Alviro Iskandar Setiawan <[email protected]> | |
*/ | |
#ifndef GWFT_H | |
#define GWFT_H | |
#include <stdint.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// SPDX-License-Identifier: GPL-2.0-only | |
const OWRT_HOST = "192.168.33.1"; | |
const OWRT_USER = "root"; | |
const OWRT_PASS = "root password here"; | |
class OWRTJsonRPC | |
{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ini_set("display_errors", true); | |
header("Content-Type: application/json"); | |
require __DIR__."/../bootstrap/autoload.php"; | |
loadConfig("api"); | |
loadConfig("telegram_bot"); | |
function get_messages(PDO $pdo, int $chat_id, ?int $last_tmsg_id = NULL, | |
?int $limit = NULL): ?array |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
static const char store_file[] = "./todo_data.bin"; | |
static const char store_file_tmp[] = "./todo_data.bin.tmp"; | |
struct todo { | |
char data[255]; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdbool.h> | |
#include <stddef.h> | |
#include <stdint.h> | |
#include <string.h> | |
#include <endian.h> | |
#ifdef __x86_64__ | |
#define NOLIBC_ARCH_HAS_U128 | |
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include "../io_ring_internal.h" | |
#include "../dns/dns_resolver.h" | |
#include "../dns/dns_ares.h" | |
#define MAX_TRY_COUNT 5 | |
struct dns_arg { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: GPL-2.0-only | |
/* | |
* gwp2p - GNU/Weeb behind NAT Peer-to-Peer implementation. | |
* | |
* Copyright (C) 2023 Ammar Faizi <[email protected]> | |
* Copyright (C) 2023 Alviro Iskandar Setiawan <[email protected]> | |
* | |
* Thanks to Matthew Patrick <[email protected]> for the idea. | |
* | |
* Link: https://t.me/GNUWeeb/782010 |