mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-05-01 01:44:15 +00:00
Add udp over tcp support for shadowsocks-2022
This commit is contained in:
parent
6f93ef7736
commit
c3505632fd
14 changed files with 119 additions and 33 deletions
|
@ -3,10 +3,10 @@
|
|||
package shadowsocks_2022
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"io"
|
||||
|
||||
B "github.com/sagernet/sing/common/buf"
|
||||
E "github.com/sagernet/sing/common/exceptions"
|
||||
M "github.com/sagernet/sing/common/metadata"
|
||||
"github.com/xtls/xray-core/common/buf"
|
||||
"github.com/xtls/xray-core/common/net"
|
||||
|
@ -140,7 +140,7 @@ func (w *packetConnWrapper) Close() error {
|
|||
}
|
||||
|
||||
func returnError(err error) error {
|
||||
if errors.Is(err, io.EOF) {
|
||||
if E.IsClosed(err) {
|
||||
return nil
|
||||
}
|
||||
return err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue