Commit c91a8bb4 authored by Vincent Pelletier's avatar Vincent Pelletier

shell: Fix port extraction after a bracket-enclosed address.

More consistent with address extraction.
parent 49036c7e
...@@ -784,7 +784,7 @@ EOF ...@@ -784,7 +784,7 @@ EOF
printf "%s\\n" "$ca_netloc" | sed "s!^\\(.*\\]\\).*!\\1!" printf "%s\\n" "$ca_netloc" | sed "s!^\\(.*\\]\\).*!\\1!"
)" )"
ca_port="$( ca_port="$(
printf "%s\\n" "$ca_netloc" | sed "s!^[^\\]]*\\]:!!" printf "%s\\n" "$ca_netloc" | sed "s!.*\\]:!!"
)" )"
;; ;;
*\]*) *\]*)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment