mirror of
https://github.com/MetaCubeX/Clash.Meta.git
synced 2025-04-05 06:03:34 +03:00
fix: vless tcp not working
This commit is contained in:
parent
dbffbca6f5
commit
38a85272c2
1 changed files with 5 additions and 5 deletions
|
@ -173,12 +173,12 @@ func (v *Vless) StreamConn(c net.Conn, metadata *C.Metadata) (net.Conn, error) {
|
|||
}
|
||||
|
||||
func (v *Vless) streamConn(c net.Conn, metadata *C.Metadata) (conn net.Conn, err error) {
|
||||
metadata = &C.Metadata{ // a clear metadata only contains ip
|
||||
NetWork: metadata.NetWork,
|
||||
DstIP: metadata.DstIP,
|
||||
DstPort: metadata.DstPort,
|
||||
}
|
||||
if metadata.NetWork == C.UDP {
|
||||
metadata = &C.Metadata{ // a clear metadata only contains ip
|
||||
NetWork: metadata.NetWork,
|
||||
DstIP: metadata.DstIP,
|
||||
DstPort: metadata.DstPort,
|
||||
}
|
||||
if v.option.PacketAddr {
|
||||
metadata = &C.Metadata{
|
||||
NetWork: C.UDP,
|
||||
|
|
Loading…
Add table
Reference in a new issue