Permalink
Browse files

Respond to M-SEARCH message "ssdp:all" (thanks, @ler0y!)

Closes pull request #100.
  • Loading branch information...
1 parent d180ab7 commit 9b3b6b1e2e2c6c382a45bdf136135b68de891373 @Raptor399 Raptor399 committed Dec 29, 2012
Showing with 5 additions and 0 deletions.
  1. +1 −0 CHANGELOG.txt
  2. +4 −0 src/main/java/net/pms/network/UPNPHelper.java
View
@@ -28,6 +28,7 @@ Changelog:
- image thumbnailer:
- add thumbnail support for TIFF and other formats
- trap exception when handling unsupported formats
+ - fix response to M-SEARCH "ssdp:all" message (thanks, ler0y!)
1.72.0 - 2012-11-18
@@ -258,6 +258,10 @@ public void run() {
sendDiscover(remoteAddr, remotePort, "urn:schemas-upnp-org:device:MediaServer:1");
}
+ if (StringUtils.indexOf(s, "ssdp:all") > 0) {
+ sendDiscover(remoteAddr, remotePort, "urn:schemas-upnp-org:device:MediaServer:1");
+ }
+
if (StringUtils.indexOf(s, PMS.get().usn()) > 0) {
sendDiscover(remoteAddr, remotePort, PMS.get().usn());
}

0 comments on commit 9b3b6b1

Please sign in to comment.