I woke up yesterday morning to water spraying out of the bottom of this attachment. After having a mini panic attack I shut the main off. I waited about 30 mins before turning the main back on and the water stopped spraying out and everything appears to be fine now. Is this some kind of back-flow preventer or pressure regulator? Can someone explain to me what the purpose of this attachment is?
Edit Here are some more photos of the setup.