Skip to content

Commit 9b880e7

Browse files
committed
only respond to ssdp searches that match our type
1 parent 1950b10 commit 9b880e7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

libraries/ESP8266SSDP/ESP8266SSDP.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -321,12 +321,11 @@ void SSDPClass::_update(){
321321
DEBUG_SSDP.printf("REJECT: %s\n", (char *)buffer);
322322
#endif
323323
}
324-
// if the search type matches our type, we should respond
325-
if(strcmp(buffer, _deviceType)){
324+
// if the search type matches our type, we should respond instead of ABORT
325+
if(strcmp(buffer, _deviceType) == 0){
326326
_pending = true;
327327
_process_time = millis();
328328
state = KEY;
329-
cursor += strlen(_deviceType);
330329
}
331330
break;
332331
case MX:

0 commit comments

Comments
 (0)