Skip to content

bug: Host matching cannot carry ports  #2064

Closed
@DokiDoki1103

Description

@DokiDoki1103

Current Behavior

The ApisixRoute "rbd-http-routes" is invalid: spec.http.match.hosts: Invalid value: "8.130.141.31:7070": spec.http.match.hosts in body should match '^*?[0-9a-zA-Z-._]+$'

/^\*?[0-9a-zA-Z-._]+$/.test('8.130.141.31:7070')
false 
/^\*?[0-9a-zA-Z-._]+$/.test('8.130.141.31') 
true

Some users access their applications through IP and ports, and use the HTTP protocol, so they hope to increase support for the HTTP port

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions