瀏覽代碼

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

Andrei Pelinescu-Onciul 19 年之前
父節點
當前提交
10508d1a35
共有 1 個文件被更改,包括 1 次插入0 次删除
  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
 #endif
 						*ip=*tmp_ip;
 						*ip=*tmp_ip;
+						*port=h->port;
 						return 0;
 						return 0;
 					}
 					}