What type and how old is your dog?
Can you provide a few more details of the situation? Were the attack dogs in their yard? Did they run out charging at your dog? Did the dog actually "attack" or just get in your dogs face? Sometimes when I am out on a walk, neighorhood dogs that are not on leash will come out and get in my dogs face.