Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/http/src/http.c

    ra62ceaf r779541b  
    4040#include <macros.h>
    4141
    42 #include <inet/endpoint.h>
    43 #include <inet/host.h>
     42#include <inet/dnsr.h>
    4443#include <inet/tcp.h>
    4544
     
    8988                return EBUSY;
    9089       
    91         int rc = inet_host_plookup_one(http->host, ip_any, &http->addr, NULL,
    92             NULL);
    93         if (rc != EOK)
    94                 return rc;
     90        /* Interpret as address */
     91        int rc = inet_addr_parse(http->host, &http->addr);
     92       
     93        if (rc != EOK) {
     94                /* Interpret as a host name */
     95                dnsr_hostinfo_t *hinfo = NULL;
     96                rc = dnsr_name2host(http->host, &hinfo, ip_any);
     97               
     98                if (rc != EOK)
     99                        return rc;
     100               
     101                http->addr = hinfo->addr;
     102                dnsr_hostinfo_destroy(hinfo);
     103        }
    95104       
    96105        inet_ep2_t epp;
Note: See TracChangeset for help on using the changeset viewer.