3x-ui/web/network
BlacKSnowDot0 b3f36d7239
Update auto_https_conn.go
- In readRequest, removed redundant assignment of c.firstBuf after the Read operation. The slice is already limited to n bytes read.
- Changed resp from a value to a pointer in readRequest to avoid copying the struct when only a pointer is needed.
- Added error handling in the Read method to return an error if readRequest fails, which was previously ignored.
- Optimized the condition in Read to check for equality (c.bufStart == len(c.firstBuf)) instead of greater than or equal, as bufStart should never exceed len(c.firstBuf).
2023-11-19 17:39:00 -08:00
..
auto_https_conn.go Update auto_https_conn.go 2023-11-19 17:39:00 -08:00
auto_https_listener.go 3x-ui 2023-02-09 22:48:06 +03:30