docker: fix _get_port_from_args() in client mode

This commit is contained in:
pexcn 2022-12-11 20:51:43 +08:00
parent ceb91eed94
commit 6c13db3e9f

View File

@ -77,7 +77,8 @@ _get_peer6_from_args() {
} }
_get_port_from_args() { _get_port_from_args() {
echo "$@" | awk -F '-l|--local' '{print $2}' | awk '{print $1}' local value=$(echo "$@" | awk -F '-l|--local' '{print $2}' | awk '{print $1}')
_is_server_mode "$1" && echo $value || echo $value | awk -F ':' '{print $2}'
} }
_stop_process() { _stop_process() {