Hope you are okay. I carry a small pepper spray keychain attachment on my dog's leash in case he's ever attacked by a javalina. It won't cause any permanent damage but should end the fight, and it's better than kicking the javalina because you don't get bitten yourself. I've never had to use it but I do recommend it.
https://www.amazon.com/dp/B008SBO9FU?ref=ppx_pop_mob_ap_share
What the law says and what may actually happen can be two very different things. According to the law in my state, it's a misdemeanor and they're responsible for vet bills and possible restitution for time the dog isn't working. But in reality? You have to know or get info from the owner, and they may well choose not to give it. My previous dog was attacked, the owner of that dog immediately had a 'medical crisis' and called an ambulance, and they were gone before I was able to get information from them. So I was stuck with a $1000+ vet bill and a dog that ended up being retired early, and no possible way to get restitution.
If it's a concern, I would suggest carrying dog-formulated pepper spray, and setting aside either a specific credit card for emergencies or building up some money in a separate bank account.
Apparently you can spray a dog 15 feet away and it's just as effective, so maybe carry this around with you. Doesn't cause long-term damage and the dog & their owner learn a valuable lesson today.
Pepper spray works great. Neighbor has an aggressive dog, but it doesn't bother us any more, after one shot. We have several of this: https://www.amazon.com/gp/product/B008SBO9FU/ref=ppx\_yo\_dt\_b\_search\_asin\_title?ie=UTF8&psc=1
I've never had to use it but this is what I carry
Unfortunately we're not able to control how well other people train and socialize their dogs. I have had a few bad experiences with dogs escaping their yards and charging me and my dog, so I may be more paranoid than most, but would it be possible for you to avoid the roads with reactive dogs on your walking route? If there is no feasible way to avoid these roads, crossing to the opposite side of the road can reduce the aggressive/defensive reaction. If there are sections you must walk through that have reactive dogs on both sides, I would walk on the side with either fewer dogs or a stronger-looking fence. Basically anything you can do to increase the distance between yourself/your dog and the fenced dogs will not only reduce their reaction to you, but also minimize stress for your dog and give you more time to react if a dog were to get loose.
​
I am not a dog-behaviorist and every scenario/every dog is different, but some dogs lose a bit of steam once they get out of their "home base"/fenced yard. Dogs are territorial and often would rather protect their home than chase you. Move away from the dog and its home quickly but CALMLY. I instinctively put my dog behind me and walk away backwards so that I can keep an eye on the dog's behavior, but I don't know if this is recommended by professionals or not. I have been able to simply "boss" a few dogs back into their yards by giving firm orders in the same tone I would use on any misbehaving dog: "Go home." (If they continue approaching) "No. Go. Home." Obviously they aren't trained to this command, so they don't understand what I'm actually saying to them, but if they have humans in their life that give them commands they'll recognize the tone. THIS IS SOMETHING THAT I DID AS A LAST RESORT A FEW TIMES WHEN REACTIVE DOGS GOT OUT OF THEIR FENCES. JUST BECAUSE IT WORKED THOSE TIMES ON THOSE DOGS DOES NOT MEAN IT IS RELIABLE. IT IS ALWAYS BETTER TO AVOID ANY INTERACTION WITH LOOSE AGGRESSIVE DOGS WHENEVER POSSIBLE.
​
If there are a lot of these types of dogs in your area, it might be worth it to invest in one of the pet-defense products like this mace-like product , I've never owned any so I don't have any recommendations as far as that goes.
​
If your dog is remaining calm in the face of these situations, don't forget to praise and reward them! They can learn how great it is to remain calm and focused on you instead of being stressed by the other dogs' behavior.
​
Good luck and stay safe!!