hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 54db9009dfa61b5c6793c87816bb61c5bc84dab7
parent 3db9b5be54625294d6fc34bf10c44e363a1b04ca
Author: Drew DeVault <sir@cmpwn.com>
Date:   Thu, 24 Jun 2021 16:19:03 -0400

net::dial::resolve: special-case "unknown"

Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Mnet/dial/resolve.ha | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/net/dial/resolve.ha b/net/dial/resolve.ha @@ -29,6 +29,9 @@ export fn resolve( }; }, }; + if (service == "unknown" && port == 0) { + return unknown_service; + }; let addrs = resolve_addr(addr)?; if (port == 0) match (lookup_service(proto, service)) {