Skip to content

httpupgradeSettings is required field, wsSettings is not #3244

@mmmray

Description

@mmmray

this is invalid config on latest release:

      "streamSettings": {
        "network": "httpupgrade"
      },

the error message is:

Failed to start: main: failed to create server > app/proxyman/outbound: failed to parse stream settings > transport/internet: unknown transport protocol: httpupgrade

that's surprising because this works:

      "streamSettings": {
        "network": "ws"
      },

in order to fix my httpupgrade config, i have to change it to:

      "streamSettings": {
        "network": "httpupgrade",
        "httpupgradeSettings": {}
      },

i traced this error message back to here:

return nil, newError("unknown transport protocol: ", name)

and noticed that there is no ConfigCreator for httpupgrade, but there is one for websocket.

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