Zxilly / UA2F

Change User-Agent to F-string on OpenWRT router to prevent being detected.
https://learningman.top/archives/304
GNU General Public License v3.0
389 stars 79 forks source link

fix (ua2f.c): Incorrect loop conditions #129

Closed miny1233 closed 2 months ago

miny1233 commented 2 months ago

switch内的break只会跳出switch而不会跳出外层的while。目前的修改是,读nfqueue_next,如果是IO_NOTREADY =0,就不会执行内层循环,而去执行nfqueue_receive

miny1233 commented 2 months ago

内层循环条件好像还有问题应该是

while ((pkg_status = nfqueue_next(buf, packet)) && !should_exit)

我不懂如何在PR里再交commit

Zxilly commented 2 months ago

这一部分我在重构了,现在这样设计不太好

Zxilly commented 2 months ago

PR反映的是对应的分支,你push到miny1233:patch-2就能在PR中显示出来