Moved the check for config.net.ptp to the correct spot in the logic.