Fix close conn

This commit is contained in:
世界
2023-03-03 16:46:49 +08:00
parent b54c1b1aa7
commit 06bc57d85a
6 changed files with 8 additions and 3 deletions

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) {