fix gethighsock to work for client and server