Merge pull request #6116 from urbit/fix-host-scry

eyre: fix %host scry so it says secure even if no domains configured
This commit is contained in:
fang 2023-02-07 16:28:47 +01:00 committed by GitHub
commit c5aece980e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2668,13 +2668,11 @@
=* domains domains.server-state.ax
=* ports ports.server-state.ax
=/ =host:eyre [%& ?^(domains n.domains /localhost)]
=/ secure=? &(?=(^ secure.ports) !?=(hoke:eyre host))
=/ port=(unit @ud)
?. secure
?. ?=(^ secure.ports)
?:(=(80 insecure.ports) ~ `insecure.ports)
?> ?=(^ secure.ports)
?:(=(443 u.secure.ports) ~ secure.ports)
``[secure port host]
``[?=(^ secure.ports) port host]
==
==
--