Skip to content
Snippets Groups Projects
Commit 9a43c29c authored by Mark Spencer's avatar Mark Spencer
Browse files

Don't lookup SRV's on IP addresses

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5022 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 1ca9fb19
No related branches found
No related tags found
No related merge requests found
......@@ -207,6 +207,8 @@ int ast_get_ip_or_srv(struct sockaddr_in *sin, const char *value, const char *se
char srv[256];
char host[256];
int tportno = ntohs(sin->sin_port);
if (inet_aton(value, &sin->sin_addr))
return 0;
if (service) {
snprintf(srv, sizeof(srv), "%s.%s", service, value);
if (ast_get_srv(NULL, host, sizeof(host), &tportno, srv) > 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment