This comes from the following excerpt:
“But are his needs any more shocking than the needs of any other animals and men? Are his deeds more outrageous than the deeds of the parent who drained the spirit from his child? The vampire may foster quickened heartbeats and levitated hair. But is he worse than the parent who gave to society a neurotic child who became a politician? Is he worse than the manufacturer who set up belated foundations with the money he made by handing bombs and guns to suicidal nationalists? Is he worse than the distiller who gave bastardized grain juice to stultify further the brains of those who, sober, were incapable of progressive thought? (Nay, I apologize for this calumny; I nip the brew that feeds me.) Is he worse, then, than the publisher who filled ubiquitous racks with lust and death wishes? Really, no, search your soul, lovie--is the vampire so bad?”
― Richard Matheson, I Am Legend and Other Stories
The author means that he has just said something negative about those who provide alcohol to others knowing that it is harmful to the brain, even though he himself drinks a lot of alcohol to numb his own brain and thoughts.
So, yes, this is a creative literary parallel to the idiom "to bite the hand that feeds you." The author (or character) is simply applying the idea specifically to alcoholics and brewers rather than to dogs and masters.