msc: Improve proxy detection