mirror of
https://github.com/Zxilly/UA2F.git
synced 2026-01-04 09:33:37 +00:00
fix: add User-agent
fuck netease Signed-off-by: Zxilly <zhouxinyu1001@gmail.com>
This commit is contained in:
parent
deca58d5ff
commit
999487653c
2
Makefile
2
Makefile
@ -1,7 +1,7 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=UA2F
|
||||
PKG_VERSION:=3.4
|
||||
PKG_VERSION:=3.5
|
||||
|
||||
PKG_RELEASE:=8
|
||||
|
||||
|
||||
@ -263,10 +263,13 @@ static int queue_cb(const struct nlmsghdr *nlh, void *data) {
|
||||
char *uapointer = memmem(tcppkpayload, tcppklen, "\r\nUser", 6);
|
||||
if (uapointer) {
|
||||
uapointer = memmem(tcppkpayload, tcppklen, "\r\nUser-Agent: ", 14);
|
||||
if (!uapointer){
|
||||
uapointer = memmem(tcppkpayload, tcppklen, "\r\nUser-agent: ", 14);
|
||||
}
|
||||
} else {
|
||||
uapointer = memmem(tcppkpayload, tcppklen, "\r\nuser-agent: ", 14);
|
||||
}
|
||||
if (!uapointer) {
|
||||
uapointer = memmem(tcppkpayload, tcppklen, "\r\nUser-agent: ", 14);
|
||||
}
|
||||
|
||||
if (uapointer) {
|
||||
debugflag++; //flag5
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user