mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-01-12 06:54:53 +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
|
||||
|
||||
if [[ "${useUpdateVars}" == false ]]; then
|
||||
# Get the Web interface port, return only the first port
|
||||
WEBPORT=$(getFTLConfigValue webserver.port|cut -d, -f1)
|
||||
# Get the Web interface port, return only the first port and strip all non-numeric characters
|
||||
WEBPORT=$(getFTLConfigValue webserver.port|cut -d, -f1 | tr -cd '0-9')
|
||||
|
||||
# Display the completion dialog
|
||||
displayFinalMessage "${pw}"
|
||||
|
|
Loading…
Reference in a new issue