lib: parse bracketed IPv6 server addresses (#1807)

* Parse bracketed IPv6 server hosts

* lib: parse service-scheme and invitation hosts via TransportHost

* correct encoding

* encoding

---------

Co-authored-by: Paul Bottinelli <paul.bottinelli@trailofbits.com>
Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com>
This commit is contained in:
sh
2026-06-21 15:18:34 +04:00
committed by GitHub
parent 958de3bfca
commit 74a86043cc
7 changed files with 145 additions and 9 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ instance StrEncoding RCInvitation where
_ <- A.string "xrcp:/"
ca <- strP
_ <- A.char '@'
host <- A.takeWhile (/= ':') >>= either fail pure . strDecode . urlDecode True
host <- strP
_ <- A.char ':'
port <- strP
_ <- A.string "#/?"