2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

DevIo.pm: do not treat /dev/...usb-0:1 as TCP or websocket (Forum #111832)

git-svn-id: https://svn.fhem.de/fhem/trunk@22120 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2020-06-05 11:52:07 +00:00
parent 244e339831
commit c6c66c33ad

View File

@ -453,7 +453,7 @@ DevIo_OpenDev($$$;$)
return &$doCb("");
}
} elsif($dev =~ m/^(ws:|wss:)?([^:]+):([0-9]+)(.*?)$/) {# TCP or websocket
} elsif($dev =~ m,^(ws:|wss:)?([^/:]+):([0-9]+)(.*?)$,) {# TCP or websocket
my ($proto, $host, $port, $path) = ($1 ? $1 : "", $2, $3, $4);
$dev = "$host:$port";