My petcock did the same. I pushed the nipple in and then gave it a gentle rap or two with the hammer. New, supple, 5.5mm fuel line, and its been good for 10 years.
Also, cleaned/replaced float needles as necessary, smoothed float hinge pins and mounting posts, set float levels.
Also, replaced this petcock gasket under the lever.
No more leaks here.