Green’s Dictionary of Slang

undercover man n.

[play on undercover n.1 ]

a ‘closeted’ male homosexual.

[US]B. Rodgers Queens’ Vernacular 48: homosexual who denies his sexual longings [...] undercover fag [man, punk, sissy] (’40s–mid ’60s).