|
@@ -49,10 +49,12 @@ int load_tm( struct tm_binds *tmb)
|
|
LOG(L_ERR, LOAD_ERROR "'t_newtran' not found\n");
|
|
LOG(L_ERR, LOAD_ERROR "'t_newtran' not found\n");
|
|
return -1;
|
|
return -1;
|
|
}
|
|
}
|
|
|
|
+#ifdef USE_TCP
|
|
if (!( tmb->t_relay_to_tcp=find_export(T_RELAY_TO_TCP, 2, 0)) ) {
|
|
if (!( tmb->t_relay_to_tcp=find_export(T_RELAY_TO_TCP, 2, 0)) ) {
|
|
LOG(L_ERR, LOAD_ERROR "'t_relay_to_tcp' not found\n");
|
|
LOG(L_ERR, LOAD_ERROR "'t_relay_to_tcp' not found\n");
|
|
return -1;
|
|
return -1;
|
|
}
|
|
}
|
|
|
|
+#endif
|
|
if (!( tmb->t_relay_to_udp=find_export(T_RELAY_TO_UDP, 2, 0)) ) {
|
|
if (!( tmb->t_relay_to_udp=find_export(T_RELAY_TO_UDP, 2, 0)) ) {
|
|
LOG(L_ERR, LOAD_ERROR "'t_relay_to_udp' not found\n");
|
|
LOG(L_ERR, LOAD_ERROR "'t_relay_to_udp' not found\n");
|
|
return -1;
|
|
return -1;
|