Skip to content
Snippets Groups Projects
Commit 49463314 authored by Brodie Rao's avatar Brodie Rao
Browse files

mail/hgweb: support service names for ports (issue2350)

This adds util.getport(port) which tries to parse port as an int, and
failing that, looks it up using socket.getservbyname(). Thus, the
following will work:

    [smtp]
    port = submission

    [web]
    port = http

This does not apply to ports in URLs used in clone, pull, etc.
parent f585c9bb
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment