Yep, and the dogs around these parts don't even have to be "stray" for me to be concerned about them. As I've mentioned before on THR, I have a "layered" defense to deal with the large, farm and ranch dogs when I'm on my exercise walks down to Marsh Creek and back. Some of those dogs will run
a hundred yards down someone's driveway just to confront me for "trespassing" on what they figure are "their" sections of a public road!
My "layered defense" for farm and ranch dogs is thus: first, I carry a great big hiking staff, second, I have my other hand on a canister of pepper spray, and lastly, I carry my regular EDC gun - usually a Glock G19 these days.
"Layered defense" or not though, the truth is, I've never had to do anything more than yell "STOP!" and show my big hiking staff (by tapping it on the asphalt) to confrontational dogs that don't know where their owner's property lines are. Once the dogs have seen my big stick, they've always just skidded to a stop, then stood there and moaned in frustration as I walked on by - still tapping my hiking staff on the asphalt with every other step.
Several years ago, a County Sheriff's Deputy was driving down the road while I was out for my hike, and when he saw me, he slowed, rolled down his window, and asked, "Is that staff for walking, or for dogs?" "Yes." I said. And he just laughed and drove away.

BTW, when I'm on my exercise hikes, sometimes the gun I'm carrying is concealed (like when I'm wearing a long vest or jacket), sometimes it's not. Concealed carry is legal here with or without a license or permit, and I think open carry has been legal here since before my
dad was born.