1985 F350 headlights

I have a 1985 f350, 6.9 diesel – my problem is the headlights go off and on intermittently like a bad relay, but i can’t find a seperate relay for headlights. Problem is worse on high beam?