1
0
Fork 0
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:
winlin 2017-01-18 16:03:57 +08:00
parent 727652c56a
commit 60be29f324
4 changed files with 4 additions and 2 deletions

View file

@ -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;