Commit c91a8bb4 by Vincent Pelletier

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

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