mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-06-08 03:34:13 +08:00
Fix gun conn setup
This commit is contained in:
parent
83581b7c1a
commit
2eecdc38a4
@ -49,7 +49,9 @@ func newLateGunConn(writer io.Writer) *GunConn {
|
||||
}
|
||||
|
||||
func (c *GunConn) setup(reader io.Reader, err error) {
|
||||
c.reader = std_bufio.NewReader(reader)
|
||||
if reader != nil {
|
||||
c.reader = std_bufio.NewReader(reader)
|
||||
}
|
||||
c.err = err
|
||||
close(c.create)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user