mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-22 00:21:30 +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) {
|
func (c *GunConn) setup(reader io.Reader, err error) {
|
||||||
|
if reader != nil {
|
||||||
c.reader = std_bufio.NewReader(reader)
|
c.reader = std_bufio.NewReader(reader)
|
||||||
|
}
|
||||||
c.err = err
|
c.err = err
|
||||||
close(c.create)
|
close(c.create)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue