Fix return nil addr in conn

This commit is contained in:
世界 committed 2023-08-30 21:28:03 +08:00
1 parent 67deac6d44
commit b83c6c9d20
9 files changed
+22 -17

No files matched your search

+2 -1
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 {