mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 06:48:00 +01:00
fix extraction forward port
This commit is contained in:
parent
793f6d3ddd
commit
8dc8175e25
2 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ if [ ${#sshtunnel} -gt 0 ]; then
|
|||
isForwarded=$(echo ${sshtunnel} | grep -c "10009<")
|
||||
if [ ${isForwarded} -gt 0 ]; then
|
||||
host=$(echo $sshtunnel | cut -d '@' -f2 | cut -d ' ' -f1)
|
||||
port=$(echo $sshtunnel | awk '{split($0,a,"10009<"); print a[2]}' | cut -d ' ' -f1)
|
||||
port=$(echo $sshtunnel | awk '{split($0,a,"10009<"); print a[2]}' | cut -d ' ' -f1 | sed 's/[^0-9]//g')
|
||||
echo "port 10009 forwarding from port ${port} from server ${host}"
|
||||
else
|
||||
echo "port 10009 is not part of the ssh forwarding - keep default port 10009"
|
||||
|
|
|
@ -95,7 +95,7 @@ if [ ${#sshtunnel} -gt 0 ]; then
|
|||
isForwarded=$(echo ${sshtunnel} | grep -c "10009<")
|
||||
if [ ${isForwarded} -gt 0 ]; then
|
||||
host=$(echo $sshtunnel | cut -d '@' -f2 | cut -d ' ' -f1)
|
||||
port=$(echo $sshtunnel | awk '{split($0,a,"10009<"); print a[2]}' | cut -d ' ' -f1)
|
||||
port=$(echo $sshtunnel | awk '{split($0,a,"10009<"); print a[2]}' | cut -d ' ' -f1 | sed 's/[^0-9]//g')
|
||||
echo "port 10009 forwarding from port ${port} from server ${host}"
|
||||
else
|
||||
echo "port 10009 is not part of the ssh forwarding - keep default port 10009"
|
||||
|
|
Loading…
Add table
Reference in a new issue