|
|
|
@ -61,10 +61,13 @@ int main(int argc,char* argv[]) {
|
|
|
|
|
|
|
|
|
|
int preferred_local_network = check_ip_ver(local_addr);
|
|
|
|
|
int preferred_remote_network = check_ip_ver(remote_addr);
|
|
|
|
|
if (preferred_remote_network < 0) { /* This value will be less than 0 if the remote address is a domain name */
|
|
|
|
|
printf("Using %d for local\nUsing hostname for remote\n",preferred_local_network);
|
|
|
|
|
} else {
|
|
|
|
|
printf("Using %d for local\nUsing %d for remote\n",preferred_local_network,preferred_remote_network);
|
|
|
|
|
|
|
|
|
|
if ((preferred_local_network == -1) || (preferred_remote_network == -1)) {
|
|
|
|
|
exit(207);
|
|
|
|
|
}
|
|
|
|
|
if (preferred_local_network == -1) {
|
|
|
|
|
exit(207); /* If the _local_ address isn't an IP address, then we've got problems. */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
char preferred_transport = 'T';
|
|
|
|
|