mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-21 16:11:32 +00: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…
Reference in a new issue