mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-03-11 09:13:52 +00:00
Add unsafe tag to multiplexer writer
This commit is contained in:
parent
5f566b140f
commit
32201cacda
1 changed files with 7 additions and 0 deletions
|
@ -217,6 +217,13 @@ func (w *wrapStream) Write(p []byte) (n int, err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (w *wrapStream) WriteIsThreadUnsafe() {
|
||||||
|
}
|
||||||
|
|
||||||
|
func (w *wrapStream) Upstream() any {
|
||||||
|
return w.Conn
|
||||||
|
}
|
||||||
|
|
||||||
func wrapError(err error) error {
|
func wrapError(err error) error {
|
||||||
switch err {
|
switch err {
|
||||||
case yamux.ErrStreamClosed:
|
case yamux.ErrStreamClosed:
|
||||||
|
|
Loading…
Add table
Reference in a new issue