mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix #750, use specific error code for dns resolve. 2.0.231
This commit is contained in:
parent
727652c56a
commit
60be29f324
4 changed files with 4 additions and 2 deletions
|
@ -495,7 +495,7 @@ int srs_librtmp_context_resolve_host(Context* context)
|
|||
// connect to server:port
|
||||
context->ip = srs_dns_resolve(context->host);
|
||||
if (context->ip.empty()) {
|
||||
return -1;
|
||||
return ERROR_SYSTEM_DNS_RESOLVE;
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue