mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-30 14:06:08 +02:00
clean port strings
This commit is contained in:
@@ -185,7 +185,7 @@ if [ "${#sshtunnel}" -gt 0 ]; then
|
||||
sudo sed -i "s/^message=.*/message='Setup SSH Tunnel'/g" ${infoFile}
|
||||
sudo /home/admin/config.scripts/internet.sshtunnel.py restore ${sshtunnel} >> ${logFile} 2>&1
|
||||
else
|
||||
echo "Provisioning SSH Tunnel - keep default" >> ${logFile}
|
||||
echo "Provisioning SSH Tunnel - not active" >> ${logFile}
|
||||
fi
|
||||
|
||||
# ROOT SSH KEYS
|
||||
|
@@ -90,7 +90,7 @@ if sys.argv[1] == "on":
|
||||
sys.exit(1)
|
||||
|
||||
# get ports
|
||||
ports = sys.argv[i].split("<")
|
||||
ports = re.sub('\W+','', sys.argv[i] ).split("<")
|
||||
port_internal = ports[0]
|
||||
port_external = ports[1]
|
||||
if port_internal.isdigit() == False:
|
||||
|
Reference in New Issue
Block a user