Skip to content
Snippets Groups Projects

refactor: allow default ports to be listened on by other protocols

  1. Dec 27, 2024
    • Maksim Kaitmazian's avatar
      refactor: allow default ports to be listened on by other protocols · 30558fa0
      Maksim Kaitmazian authored and Dmitry Rodionov's avatar Dmitry Rodionov committed
      Previously, using a default port of another protocol would result in an
      error like the following
      ```
      error: Invalid value "localhost:8080" for '--pg-listen <[HOST][:PORT]>': PGPROTO cannot listen on port 8080 because it is default port for HTTP
      ```
      
      This commit allows default ports to be used by other protocols,
      as long as the port is not already occupied.
      
      Close #1254
      30558fa0
Loading