Jigsaw-Code / outline-ss-server

Outline Shadowsocks server
https://getoutline.org
Apache License 2.0
745 stars 189 forks source link

refactor: modularize UDP connection handling #188

Closed sbruens closed 4 months ago

sbruens commented 5 months ago

Split the packet handler's Handle() method into 3 distinct parts for authentication, proxy request extraction, and proxy handling. This is similar to what was done with the TCP handler in #173.

There's more refactoring that can be done in future PRs, but this should make it easier to follow what's happening.