add raw protocol to socket check, fixed #44