Refine 4in6 processing

This commit is contained in:
世界 committed 2022-09-25 22:29:18 +08:00
1 parent c6586f19fa
commit c90a77a185
12 files changed
+44 -60

No files matched your search

+2 -2
View File
@@ -36,8 +36,8 @@ func (l *Listener) Accept() (net.Conn, error) {
}
if header != nil {
return &bufio.AddrConn{Conn: conn, Metadata: M.Metadata{
Source: M.SocksaddrFromNet(header.SourceAddr),
Destination: M.SocksaddrFromNet(header.DestinationAddr),
Source: M.SocksaddrFromNet(header.SourceAddr).Unwrap(),
Destination: M.SocksaddrFromNet(header.DestinationAddr).Unwrap(),
}}, nil
}
return conn, nil