Boyfriend has porn addiction

So he told me this like 30 minutes ago. He started crying cause he feels bad and he doesn’t want to lose me over this. I’m glad he told me. I’m not mad at him? If yours had a porn addiction, would you be mad? How do I help him?