diff --git a/Makefile b/Makefile index e8cf562..eb61860 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=UA2F -PKG_VERSION:=3.4 +PKG_VERSION:=3.5 PKG_RELEASE:=8 diff --git a/src/ua2f.c b/src/ua2f.c index 8f0cfe9..b46d1a8 100644 --- a/src/ua2f.c +++ b/src/ua2f.c @@ -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