summaryrefslogtreecommitdiff
path: root/uristart
diff options
context:
space:
mode:
authorepoch <epoch@thebackupbox.net>2020-04-19 02:08:02 -0500
committerepoch <epoch@thebackupbox.net>2020-04-19 02:08:02 -0500
commitba14e2682f947c2dff57a3d8aaf754a9a00e246b (patch)
treec3feef8c8ba8042be9106e3e35065dc351c948e7 /uristart
parent3dcba88f53fcf9d01ce71ce838bda7697de4def9 (diff)
downloaduritools-ba14e2682f947c2dff57a3d8aaf754a9a00e246b.tar.gz
uritools-ba14e2682f947c2dff57a3d8aaf754a9a00e246b.zip
made the getsrv only base its port on the last part of a multi-scheme scheme (like git+ssh)
Diffstat (limited to 'uristart')
-rwxr-xr-xuristart2
1 files changed, 1 insertions, 1 deletions
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