mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-14 11:29:04 +00:00
FTL allows non-numieric port notation - we need to strip this
Signed-off-by: Christian König <github@yubiuser.dev>
This commit is contained in:
parent
7dc542f3c2
commit
b2a5564685
1 changed files with 2 additions and 2 deletions
|
@ -2498,8 +2498,8 @@ main() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${useUpdateVars}" == false ]]; then
|
if [[ "${useUpdateVars}" == false ]]; then
|
||||||
# Get the Web interface port, return only the first port
|
# Get the Web interface port, return only the first port and strip all non-numeric characters
|
||||||
WEBPORT=$(getFTLConfigValue webserver.port|cut -d, -f1)
|
WEBPORT=$(getFTLConfigValue webserver.port|cut -d, -f1 | tr -cd '0-9')
|
||||||
|
|
||||||
# Display the completion dialog
|
# Display the completion dialog
|
||||||
displayFinalMessage "${pw}"
|
displayFinalMessage "${pw}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue