wrong device name because of have a minus in the domain name

Max2Play Home 2016 (en) Forums Max2Play Development (Ideas, Wishes) wrong device name because of have a minus in the domain name

This topic contains 1 reply, has 2 voices, and was last updated by  flysurfer Moderator 3 months, 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • 29. März 2020 at 15:08 #48316

    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/)//‘

    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 (.)

    15. April 2020 at 15:15 #48496

    Hi Tschak,

    thanks for your Bugreport! We will change this for the next version.

    All the Best,
    Stefan

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Register here