Browse Source

- fix: port was not set to default when the hostname was an ip address

Andrei Pelinescu-Onciul 19 years ago
parent
commit
10508d1a35
1 changed files with 1 additions and 0 deletions
  1. 1 0
      dns_cache.c

+ 1 - 0
dns_cache.c

@@ -2212,6 +2212,7 @@ int dns_sip_resolve(struct dns_srv_handle* h,  str* name,
 						}
 #endif
 						*ip=*tmp_ip;
+						*port=h->port;
 						return 0;
 					}