From ba14e2682f947c2dff57a3d8aaf754a9a00e246b Mon Sep 17 00:00:00 2001 From: epoch Date: Sun, 19 Apr 2020 02:08:02 -0500 Subject: made the getsrv only base its port on the last part of a multi-scheme scheme (like git+ssh) --- uristart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'uristart') diff --git a/uristart b/uristart index 26261ff..4e97633 100755 --- a/uristart +++ b/uristart @@ -26,7 +26,7 @@ if printf "%s\n" "$uri" | urimatch nP >/dev/null;then proto=tcp fi uri="$(cat <(printf "%s\n" "$uri" | uricut) \ - <(getsrv $(printf "%s\n" "$uri" | uriprintf '%s '"$proto"' %d') 2>&- | tr ':' ' ' | sed 's/ /_port: /' | sed 's/^/domain: /' | tr _ '\n') \ + <(getsrv $(printf "%s\n" "$uri" | uriprintf '%s '"$proto"' %d' | cut -d+ -f2-) 2>&- | tr ':' ' ' | sed 's/ /_port: /' | sed 's/^/domain: /' | tr _ '\n') \ | urijoin)" printf "srv (%s) modified uri: %s\n" "$proto" "$uri" >&2 fi -- cgit v1.2.3