diff options
author | epoch <epoch@thebackupbox.net> | 2020-04-19 02:08:02 -0500 |
---|---|---|
committer | epoch <epoch@thebackupbox.net> | 2020-04-19 02:08:02 -0500 |
commit | ba14e2682f947c2dff57a3d8aaf754a9a00e246b (patch) | |
tree | c3feef8c8ba8042be9106e3e35065dc351c948e7 | |
parent | 3dcba88f53fcf9d01ce71ce838bda7697de4def9 (diff) | |
download | uritools-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)
-rwxr-xr-x | uristart | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |