fixed overwritting of outbound proxy if domainname is an IP; thanks to Alexander Litvak

git-svn-id: http://svn.berlios.de/svnroot/repos/sipsak/trunk@430 75b5f7c7-cfd4-0310-b54c-e118b2c5249a
(cherry picked from commit 3f4be2f3806bf3269e1406cd0e514468a7125d4b)
changes/49/4849/1
nils-ohlmeier 19 years ago committed by Victor Seva
parent ade4019081
commit dfc065c74f

@ -585,6 +585,9 @@ int main(int argc, char *argv[])
rport = port;
}
outbound_proxy=1;
#ifdef DEBUG
printf("address: %lu, rport: %i\n", address, rport);
#endif
break;
case 'P':
processes=str_to_int(0, optarg);
@ -644,7 +647,7 @@ int main(int argc, char *argv[])
if (port && !rport) {
rport = port;
}
if (is_ip(domainname)) {
if (is_ip(domainname) && !address) {
address = getaddress(domainname);
if (transport == 0)
transport = SIP_UDP_TRANSPORT;
@ -671,6 +674,9 @@ int main(int argc, char *argv[])
domainname = backup;
}
uri_b=1;
#ifdef DEBUG
printf("address: %lu, rport: %i, username: '%s', domain: '%s'\n", address, rport, username, domainname);
#endif
break;
case 'S':
fprintf(stderr, "warning: symmetric does not work with a-symmetric servers\n");

Loading…
Cancel
Save