=rem #3666: Explicitly log invalid outbound addresses (forward port)

(cherry picked from commit e8bbcf8)