port ssl iplist algo to tcp