Commit Graph

219 Commits

Author SHA1 Message Date
Zxilly
38d8ca89e2 feat: make it possible to run without uci
for #113
2023-12-25 20:23:23 +08:00
Zxilly
6be399f59e fix: remove possible false positive 2023-12-03 21:11:32 +08:00
Zxilly
d880329773 fix: use same definition 2023-11-10 18:45:34 +08:00
Zxilly
027669129b perf: using const for argument 2023-11-10 18:25:31 +08:00
Zxilly
406c138ad1 feat: check http request method 2023-10-31 16:08:04 +08:00
Zxilly
420762a56a chore: no need for atomic 2023-10-30 13:49:13 +08:00
Zxilly
94b55c6828 feat: allow set UA with uci 2023-10-20 21:04:12 +08:00
Zxilly
fbbc3ca277 feat: add log for unexpected exit 2023-10-16 22:57:06 +08:00
Zxilly
be200f549b fix: import time.h in cache 2023-09-10 18:14:02 +08:00
Zxilly
004d797fdc chore: prevent useless include 2023-09-10 12:23:52 +08:00
Zxilly
2b88e8a11d fix: fix memncasemem and add tests 2023-09-10 12:17:18 +08:00
Zxilly
3baaedc5bc fix: fix http mark handle
fix: #91
2023-09-06 22:18:05 +08:00
Zxilly
a62a299928 chore: add log 2023-09-06 12:17:11 +08:00
Zxilly
b177c791d7 fix: use correct mark for early return 2023-09-06 12:16:08 +08:00
Zxilly
5547b2098c feat: add non-tcp guard 2023-09-01 23:26:26 +08:00
Zxilly
4bac87debb fix: add missing count statement 2023-09-01 23:26:14 +08:00
Zxilly
4c609fc646 feat: add no cache mode 2023-09-01 19:12:14 +08:00
Zxilly
bf2fdd9ea9 revert: "feat: allow ua2f run without conntrack mark support"
This reverts commit e21821c4c0.
2023-09-01 00:16:43 +08:00
Zxilly
e21821c4c0 feat: allow ua2f run without conntrack mark support
Currently I have no time to add support nftables.
2023-08-31 22:55:52 +08:00
Zxilly
3905e1d32f build: fix config move to cmake 2023-05-24 22:28:53 +08:00
Zxilly
c0289ac276 fix: exit when handle cli command 2023-05-23 14:10:45 +08:00
Zxilly
1a3d7dbb27 feat: add cli 2023-05-22 21:07:27 +08:00
Zxilly
70aa29167e fix: custom ua filled with space but not \0 2023-05-11 11:41:00 +08:00
Zxilly
5fc93bd110 fix: fix auto_type error 2023-05-10 11:36:15 +08:00
Zxilly
633e5e5c39 feat: add custom ua 2023-05-10 11:31:31 +08:00
Zxilly
2dd4c93c8c fix: handle multi user-agent 2023-05-10 11:30:53 +08:00
Zxilly
d0b2b3c41b fix: hook non-standard user-agent header 2023-05-10 11:06:27 +08:00
Zxilly
58943101d7 fix: fix ipv4 addr set 2023-04-23 15:35:33 +08:00
Zxilly
5469d76032 fix: add missing log 2023-04-23 10:33:05 +08:00
Zxilly
aace74c3c7 fix: regard connmark 0 as not set
(#73)
2023-04-22 21:44:49 +08:00
Zxilly
f7f4f6cfe5 fix: fix missing __uint128_t 2023-04-21 22:02:11 +08:00
Zxilly
6c760a0807 refactor: rewrite to support ipv6
Closes: #44
2023-04-21 21:26:27 +08:00
Zxilly
84e1ac90f1 refactor: remove ipset 2023-04-13 22:21:57 +08:00
Zxilly
f3c90cdd09 style: clean code 2023-04-12 22:08:34 +08:00
wulishui
c2388e3186
refactor: uci scripts 2022-08-27 15:28:21 +08:00
Zxilly
1afac6f4a3
fix: fix potential wild pointer and update log
Signed-off-by: Zxilly <zxilly@outlook.com>
2022-04-21 14:03:35 +08:00
Zxilly
d0aa9395d8 fix: cover edge case 2022-03-05 02:13:03 +08:00
imguoliwei
3466e95870
fix pointer out of bounds (#42)
[skip ci]

Co-authored-by: imguoliwei <imguoliwei@github.com>
2022-03-05 01:58:40 +08:00
Zxilly
061d14a04e fix: exit correctly 2021-11-02 13:15:22 +08:00
Zxilly
a288a3fc0c fix: kill child when parent dies
Closes https://github.com/Zxilly/UA2F/issues/27
2021-11-02 00:37:27 +08:00
Zxilly
327f312925 style: add log 2021-09-12 09:08:09 +08:00
Zxilly
6fe0b26201
fix: shorten wait time 2021-08-10 16:48:03 +08:00
Zxilly
d82e7543e7 chore: bump version 2021-06-26 18:42:10 +08:00
Zxilly
84a358c5e6 feat: use default ua string 2021-06-26 13:12:38 +08:00
CN_SZTL
8b6739a16c
build: format OpenWrt Makefile and fix CMakeLists (#23)
* style: format OpenWrt Makefile

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

* fix: remove obsolete targets in CMakeLists

Fixes: 661334b48e ("chore: remove reference")

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

* fix: remove compile warnings

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-06-17 00:57:53 +08:00
Zxilly
bae547dc58 perf: use ncase memem
Signed-off-by: Zxilly <zhouxinyu1001@gmail.com>
2021-05-09 12:40:05 +08:00
Zxilly
4f8ae1c522 fix: unexpected behavior 2021-05-08 09:44:25 +08:00
Zxilly
466d5b114c fix: fix when user-agent at bottom of header
Signed-off-by: Zxilly <zhouxinyu1001@gmail.com>
2021-05-06 21:42:49 +08:00
Zxilly
999487653c fix: add User-agent
fuck netease

Signed-off-by: Zxilly <zhouxinyu1001@gmail.com>
2021-05-06 20:41:55 +08:00
Zxilly
deca58d5ff fix: add User-agent
fix for some fucking idiot programmer in Tencent

Signed-off-by: Zxilly <zhouxinyu1001@gmail.com>
2021-05-06 20:12:26 +08:00