
Firstly, your friends dog was doing nothing wrong, he was telling the other dog to "but out" and mind his manneres ,and I dont think castration will change his behaviour, after all he was only sticking up for himself.
The trouble with mature male Boxers, is they can, become a little to big for their own boots, whether they are castrated or not. My boy is now 8 , up till he was 6 he was easy pickings for anything on 4 legs, Then one day he had enough, and started to fight back....so now I just watch him, puppies/females/ small dogs, and subservient dogs he loves, if he was to meet a pushy male, he will get a little upperty. (thankfully it is mostly handbags at dawn) so know I just put him back on the lead, till we know all dogs are ok.
I can understand your friends worries, it is differecult to control other peoples dogs when out walking, and the last thing this boy needs is to have to many of these encounters..(their is a saying, it only takes one fight to turn a Boxer into a prize fighter) he needs good experiences , and it sounds like on the whole is is well trained.
She needs to gain confidence with him again, otherwise he is going to start to feel it from her, and they will both be nervous wrecks.
She could carry a water spray with her, and if any dog comes running up to her , a quick spray in the face, should send it off. or she could shout to the owner, "can you please get your dog", " Mine has a contagious disease , and I would`nt like yours to catch it" that should sort that out.