mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
merge srs2, use specific error code for dns resolve
This commit is contained in:
commit
e8c48ac8f8
3 changed files with 3 additions and 1 deletions
|
@ -491,7 +491,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