fixed tcprelay local bugs, fixed cipher bugs