jagt / clumsy

clumsy makes your network condition on Windows significantly worse, but in a controlled and interactive manner.
http://jagt.github.io/clumsy/
Other
4.96k stars 488 forks source link

Add Functions customizations to Presets #155

Open LucavaL opened 6 months ago

LucavaL commented 6 months ago

Hello, first of all thanks for the amazing Software!

I was wondering if adding Functions customizations to the Presets could be implemented:

Example config.txt:

PRESET1: tcp.DstPort == 12354 or tcp.SrcPort == 12354 or udp.DstPort == 12354 or udp.SrcPort == 12354 PRESET1-func: Lag(inbound, outbound, amount==50), Drop(inbound, outbound, amount==10)

or even on a single line, like this:

PRESET1: tcp.DstPort == 12354 or tcp.SrcPort == 12354 or udp.DstPort == 12354 or udp.SrcPort == 12354; Lag(inbound, outbound, amount==50), Drop(inbound, outbound, amount==10)

and so on.