Fix return nil addr in conn

This commit is contained in:
世界
2023-08-30 17:53:37 +08:00
parent 67deac6d44
commit b83c6c9d20
9 changed files with 22 additions and 17 deletions

View File

@@ -16,6 +16,7 @@ import (
"github.com/sagernet/sing/common/bufio"
E "github.com/sagernet/sing/common/exceptions"
F "github.com/sagernet/sing/common/format"
M "github.com/sagernet/sing/common/metadata"
N "github.com/sagernet/sing/common/network"
)
@@ -174,11 +175,11 @@ func (c *HTTP2Conn) Close() error {
}
func (c *HTTP2Conn) LocalAddr() net.Addr {
return nil
return M.Socksaddr{}
}
func (c *HTTP2Conn) RemoteAddr() net.Addr {
return nil
return M.Socksaddr{}
}
func (c *HTTP2Conn) SetDeadline(t time.Time) error {