andydunstall / piko

An open-source alternative to Ngrok, designed to serve production traffic and be simple to host (particularly on Kubernetes)
MIT License
1.9k stars 55 forks source link

tcp: Fix protocol configuration loading #157

Closed tschwery closed 2 months ago

tschwery commented 2 months ago

I'm getting started with Piko and tried to configure a TCP Listener in the configuration file.

listeners:
  - endpoint_id: my-ssh
    addr: '22'
    protocol: tcp
    timeout: 15s

This returns an error config: listener: my-ssh: unsupported protocol.

When trying with protocol: TCP (or even protocol: asdf), it continues loading, the upstream is created but I was unable to connect. It looks like the TCP configuration was not loaded correctly.