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

@@ -15,6 +15,7 @@ import (
"github.com/sagernet/sing/common"
"github.com/sagernet/sing/common/buf"
"github.com/sagernet/sing/common/bufio"
M "github.com/sagernet/sing/common/metadata"
"github.com/sagernet/sing/common/rw"
)
@@ -138,7 +139,7 @@ func (c *GunConn) Close() error {
}
func (c *GunConn) LocalAddr() net.Addr {
return nil
return M.Socksaddr{}
}
func (c *GunConn) RemoteAddr() net.Addr {