If your dog is usually outgoing and friendly, even with strangers, it means that the person is okay (got your dogs stamp of approval). When people are nervous, the dog will respond with distrust until the person is accustomed to the dog, and then, even if they are not friendly to the new person, they dont act threateningly toward them.