Skip to content

WSS Proxy Setup Broken #147

@GEverding

Description

@GEverding

Describe the bug

uri = "\(scheme)://\(host)\(relativePath)\(port)"

This will generate a url like wss://apple.com/asdf:55433 which is not valid for a normal target. For most wss connections the uri should be wss://app.com:443/relativepath assuming the proxy config looks like localhost:55433

Fix: uri = "\(scheme)://\(host):\(port)\(relativePath)"

To Reproduce

Theres a test case that simulates the incorrect result.

Expected behavior

Environment

  • Vapor Framework version:
  • Vapor Toolbox version:
  • OS version:

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions