Skip to content

Commit

Permalink
strip http(s):// from ip-address if set to fix Session ID storage. (#129
Browse files Browse the repository at this point in the history
)

Co-authored-by: Jens Maus <[email protected]>
  • Loading branch information
hotroot and jens-maus authored Jul 13, 2023
1 parent 03ad2f2 commit 54c2b15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hm_pdetect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,8 @@ function retrieveFritzBoxDeviceList()
# identifier or if we have to add it ourself
if [[ ! ${ip} =~ ^http(s)?:\/\/ ]]; then
uri="http://${ip}"
else
ip=$(echo "${ip}" | sed -E 's/^http(s)?:\/\///g')
fi

# retrieve the network device list from the fritzbox using a
Expand Down

0 comments on commit 54c2b15

Please sign in to comment.