sorz / moproxy

A transparent TCP to SOCKSv5/HTTP proxy on Linux written in Rust.
MIT License
223 stars 35 forks source link

dry refactoring of impl StreamWithBuffer #27

Closed vbauerster closed 1 month ago

vbauerster commented 1 month ago

some refactoring to avoid code duplication (dry) with same logic preserved.

sorz commented 1 month ago

It indeed improves the readability of code. Thanks!