Add support for setting the EGD socket.