Max2Play Home › Forums › Max2Play Development (Ideas, Wishes) › wrong device name because of have a minus in the domain name
I have a minus (-) in my domainname for that the m2p names are shown wrong
My first solution is to change the regex at /opt/max2play/list_devices.sh
from OUTPUT=nmap -R -p 80 –open $SUBNET.* | grep -o -e „\([a-zA-Z0-9\.]\+ ([0-9\.]\+)\)\|\([0-9\.]\{6,\}\)$“ | sed ’s/ (/|/;s/)//‘
OUTPUT=
to OUTPUT=nmap -R -p 80 –open $SUBNET.* | grep -o -e „\([a-zA-Z0-9\.\-]\+ ([0-9\.]\+)\)\|\([0-9\.]\{6,\}\)$“ | sed ’s/ (/|/;s/)//‘
maybe you can change it at your code, better would be to use the first devicename until the first dot (.)
Hi Tschak,
thanks for your Bugreport! We will change this for the next version.
All the Best, Stefan
You must be logged in to reply to this topic.
Max2Play free download