Skip to content
  • Claes Jakobsson's avatar
    hostip: support wildcard hosts · d8cae791
    Claes Jakobsson authored
    This adds support for wildcard hosts in CURLOPT_RESOLVE. These are
    try-last so any non-wildcard entry is resolved first. If specified,
    any host not matched by another CURLOPT_RESOLVE config will use this
    as fallback.
    
    Example send a.com to 10.0.0.1 and everything else to 10.0.0.2:
      curl --resolve *:443:10.0.0.2 --resolve a.com:443:10.0.0.1 \
           https://a.com https://b.com
    
    
    
    This is probably quite similar to using:
      --connect-to a.com:443:10.0.0.1:443 --connect-to :443:10.0.0.2:443
    
    Closes #3406
    Reviewed-by: default avatarDaniel Stenberg <daniel@haxx.se>
    d8cae791