Commit 51d96d7
committed
perf(socksproto): optimize socks target parsing and IP string conversions
- Refine IP-to-string conversion logic in ParseTargetPayload.
- Reorder validation checks to improve CPU branching efficiency.
- Verified functional parity on SOCKS5 handshake processing.1 parent d05cb02 commit 51d96d7
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
64 | | - | |
| 65 | + | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| |||
0 commit comments