Added config option to specify to use or not flashsocket