miniupnpd/minissdp.c: Don't advertise WANPPPConnection in UPNP_STRICT mode

This commit is contained in:
Thomas Bernard 2013-06-05 11:19:23 +02:00
parent 4077b0069d
commit 74c3c18380
2 changed files with 8 additions and 2 deletions

View File

@ -1,7 +1,8 @@
$Id: Changelog.txt,v 1.342 2013/06/05 09:10:46 nanard Exp $ $Id: Changelog.txt,v 1.343 2013/06/05 09:18:22 nanard Exp $
2013/06/05: 2013/06/05:
check Service ID in SetDefaultConnectionService method check Service ID in SetDefaultConnectionService method
Don't advertise WANPPPConnection in UPNP_STRICT mode
2013/05/29: 2013/05/29:
Remove namespace from variable name elements in Events "propertyset" Remove namespace from variable name elements in Events "propertyset"

View File

@ -1,4 +1,4 @@
/* $Id: minissdp.c,v 1.49 2013/04/26 15:17:10 nanard Exp $ */ /* $Id: minissdp.c,v 1.50 2013/06/05 09:18:23 nanard Exp $ */
/* MiniUPnP project /* MiniUPnP project
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
* (c) 2006-2013 Thomas Bernard * (c) 2006-2013 Thomas Bernard
@ -413,7 +413,12 @@ static struct {
{"urn:schemas-upnp-org:device:WANDevice:", 1}, {"urn:schemas-upnp-org:device:WANDevice:", 1},
{"urn:schemas-upnp-org:service:WANCommonInterfaceConfig:", 1}, {"urn:schemas-upnp-org:service:WANCommonInterfaceConfig:", 1},
{"urn:schemas-upnp-org:service:WANIPConnection:", WANIPC_VER}, {"urn:schemas-upnp-org:service:WANIPConnection:", WANIPC_VER},
#ifndef UPNP_STRICT
/* We use WAN IP Connection, not PPP connection,
* but buggy control points may try to use WanPPPConnection
* anyway */
{"urn:schemas-upnp-org:service:WANPPPConnection:", 1}, {"urn:schemas-upnp-org:service:WANPPPConnection:", 1},
#endif
#ifdef ENABLE_L3F_SERVICE #ifdef ENABLE_L3F_SERVICE
{"urn:schemas-upnp-org:service:Layer3Forwarding:", 1}, {"urn:schemas-upnp-org:service:Layer3Forwarding:", 1},
#endif #endif