Added ENABLE_DAEMON ifdef to disable net hooks