Skip to content
Snippets Groups Projects
  • Maksim Kaitmazian's avatar
    48e23f20
    refactor: allow default ports to be listened on by other protocols · 48e23f20
    Maksim Kaitmazian authored
    Previously, using a default port for 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
    48e23f20
    History
    refactor: allow default ports to be listened on by other protocols
    Maksim Kaitmazian authored
    Previously, using a default port for 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
address.rs 12.21 KiB