xvzc / SpoofDPI

A simple and fast anti-censorship tool written in Go
Apache License 2.0
3.71k stars 255 forks source link

Blacklist & max-payload #100

Open eierfrucht opened 2 months ago

eierfrucht commented 2 months ago

Would you consider adding an option to load a list of blocked URLs from a number of text files, e.g. following GoodbyeDPI's pattern:

blacklist.txt youtube.txt

So far we've only got -url which is a bit impractical when there are thousands of urls

Also, a functional analog to -max-payload option would be very useful for less CPU load:

--max-payload [value] packets with TCP payload data more than [value] won't be processed. Use this option to reduce CPU usage by skipping huge amount of data (like file transfers) in already established sessions. May skip some huge HTTP requests from being processed. Default (if set): --max-payload 1200.

KirillSluchaev commented 2 months ago

Hi, as far as I understood, -max-payload option limit only http body size or it is mtu too?