In love with my best friends boyfriend

Ok so my best friend is dating my X. I never really said anything because I had a boyfriend at the time so I just let it go that they were dating. I have always been really supportive of their relationship. Since they started dating I have become really close with my X as friends because he'll ask me advice about my best friend. However, I got really drunk the other night and I told him all about how I had feelings for him and started crying about how he's dating my best friend. I feel really bad because I love my best friend and I don't want to hurt her but these words were the truth. He rejected me as he should because that's the right thing to do but ever since that night I really do like him. What do I do ?