update code can deal with raw thirft traffic without MITMproxy