Fix close conn

This commit is contained in:
世界
2023-03-17 14:53:13 +08:00
parent b54c1b1aa7
commit 06bc57d85a
6 changed files with 8 additions and 3 deletions
+1
View File
@@ -154,6 +154,7 @@ func (h *vmessDialer) DialContext(ctx context.Context, network string, destinati
}
}
if err != nil {
common.Close(conn)
return nil, err
}
switch N.NetworkName(network) {