if($dP=="TCP"){
xlog("L_INFO","[route] [TCP] 1\n");
if (!t_relay_to_tcp()) {
xlog("L_ERR", "Error t_relay [route] \n");
t_reply("500","Server - ERROR ");
exit;
}
} else if($dP=="TCP"){
xlog("L_INFO","[route] [TCP] 2\n");
if (!t_relay_to_tcp()) {
xlog("L_ERR", "Error t_relay [route] \n");
t_reply("500","Server - ERROR ");
exit;
}
}else if($dP=="UDP"){
xlog("L_INFO","[route] [UDP] 1\n");
if (!t_relay_to_udp()) {
xlog("L_ERR", "Error t_relay [route] \n");
t_reply("500","Server - ERROR ");
exit;
}
}else{
xlog("L_INFO","[route] [??] 1\n");
if (!t_relay()) {
xlog("L_ERR", "Error t_relay [route] \n");
t_reply("500","Server - ERROR ");
exit;
}
}