mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-15 21:30:50 +08:00
Chore: minor declaration
This commit is contained in:
@@ -91,8 +91,9 @@ func (e *Endpoint) dispatchLoop(cancel context.CancelFunc) {
|
||||
// gracefully after (*Endpoint).dispatchLoop(context.CancelFunc) returns.
|
||||
defer cancel()
|
||||
|
||||
offset, mtu := e.offset, int(e.mtu)
|
||||
|
||||
for {
|
||||
offset, mtu := e.offset, int(e.mtu)
|
||||
data := make([]byte, offset+mtu)
|
||||
|
||||
n, err := e.rw.Read(data)
|
||||
|
Reference in New Issue
Block a user