mirror of
https://github.com/SagerNet/sing.git
synced 2025-04-05 04:47:40 +03:00
Fix close conn
This commit is contained in:
parent
a5d5d79e29
commit
118c423774
11 changed files with 179 additions and 51 deletions
|
@ -12,11 +12,11 @@ type BufferedWriter struct {
|
|||
Buffer *buf.Buffer
|
||||
}
|
||||
|
||||
func (w *BufferedWriter) Upstream() io.Writer {
|
||||
func (w *BufferedWriter) UpstreamWriter() io.Writer {
|
||||
return w.Writer
|
||||
}
|
||||
|
||||
func (w *BufferedWriter) Replaceable() bool {
|
||||
func (w *BufferedWriter) WriterReplaceable() bool {
|
||||
return w.Buffer == nil
|
||||
}
|
||||
|
||||
|
@ -85,11 +85,11 @@ type HeaderWriter struct {
|
|||
Header *buf.Buffer
|
||||
}
|
||||
|
||||
func (w *HeaderWriter) Upstream() io.Writer {
|
||||
func (w *HeaderWriter) UpstreamWriter() io.Writer {
|
||||
return w.Writer
|
||||
}
|
||||
|
||||
func (w *HeaderWriter) Replaceable() bool {
|
||||
func (w *HeaderWriter) WriterReplaceable() bool {
|
||||
return w.Header == nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue