mirror of
https://github.com/dndx/phantun.git
synced 2025-04-05 19:49:29 +08:00
docker: fix _get_port_from_args() in client mode
This commit is contained in:
parent
ceb91eed94
commit
6c13db3e9f
@ -77,7 +77,8 @@ _get_peer6_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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user