Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-4661

remap tunnel support is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • Remap API
    • None

    Description

      remap.config claims to support tunnel:// URLs, but this seems to be totally broken. At least I can't get it to work.

      If I start with a remap.config like this:

      map tunnel://www.example.com/ tunnel://foo.com/
      

      What happens is that inside remap_parse_config_bti it does a DNS resolution and seems to try to ass mappings for each resolved address. Although this seems like a bad idea, it doesn't work because getaddrinfo returns entries for IPPROTO_UDP and IPPROTO_TCP and the loading code fails when it tries to add duplicate mappings (it adds one for each address result and fails to check the protocol field).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jamespeach James Peach
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: