Removed check for IP version in remote address

master
Aadhavan Srinivasan 2 years ago
parent ec3698c14a
commit 2e5d2e64c0

@ -61,10 +61,13 @@ int main(int argc,char* argv[]) {
int preferred_local_network = check_ip_ver(local_addr); int preferred_local_network = check_ip_ver(local_addr);
int preferred_remote_network = check_ip_ver(remote_addr); int preferred_remote_network = check_ip_ver(remote_addr);
printf("Using %d for local\nUsing %d for remote\n",preferred_local_network,preferred_remote_network); 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);
if ((preferred_local_network == -1) || (preferred_remote_network == -1)) { } else {
exit(207); printf("Using %d for local\nUsing %d for remote\n",preferred_local_network,preferred_remote_network);
}
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'; char preferred_transport = 'T';

Loading…
Cancel
Save