File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -280,15 +280,15 @@ func (l *Locale) ServeSocks4(ctx *Context, cli io.ReadWriteCloser) error {
280280 Closer : cli ,
281281 }
282282 var (
283- fCode uint8
284- fDstPort = make ([]byte , 2 )
285- fDstIP = make ([]byte , 4 )
286- fHostName []byte
287283 dstHost string
288284 dstPort uint16
289285 dst string
290- srv io.ReadWriteCloser
291286 err error
287+ fCode uint8
288+ fDstIP = make ([]byte , 4 )
289+ fDstPort = make ([]byte , 2 )
290+ fHostName []byte
291+ srv io.ReadWriteCloser
292292 )
293293 cliReader .Discard (1 )
294294 fCode , err = cliReader .ReadByte ()
@@ -344,15 +344,15 @@ func (l *Locale) ServeSocks5(ctx *Context, cli io.ReadWriteCloser) error {
344344 Closer : cli ,
345345 }
346346 var (
347- fN uint8
348- fCmd uint8
349- fAT uint8
350- fDstAddr []byte
351- fDstPort = make ([]byte , 2 )
352347 dstHost string
353348 dstPort uint16
354349 dst string
355350 err error
351+ fAT uint8
352+ fCmd uint8
353+ fDstAddr []byte
354+ fDstPort = make ([]byte , 2 )
355+ fN uint8
356356 )
357357 cliReader .Discard (1 )
358358 fN = doa .Val (cliReader .ReadByte ())
You can’t perform that action at this time.
0 commit comments