Actually, yes. Under the UCMJ there is a recourse for that. First, you tell the person doing the offense that you don't appreciate it, and that if it continues, you'll take it to the chain of command. If it happens again, you take it to the chain of command and let them handle it.
However..........just like heterosexuals have a certain "type" (hair color, shape, complexion, etc.), so do gays. It seems like the people who are the most scared of "catching the ghey" are those that don't know anything about them.
And.......FWIW..........if you're a fat redneck slob and chicks won't look at you, what makes you think that gays are gonna want a shot at you?