From 75877d2f22e93cc77b4b5abc58900e3823dafb80 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 2 Mar 2017 15:54:06 -0800 Subject: [PATCH] upnp: rename resolve to discover. --- lib/net/upnp.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/lib/net/upnp.js b/lib/net/upnp.js index 95302ae9..29a628f0 100644 --- a/lib/net/upnp.js +++ b/lib/net/upnp.js @@ -298,19 +298,6 @@ UPNP.parseHeader = function parseHeader(str) { return headers; }; -/** - * Discover gateway. - * @param {String?} host - Multicast IP. - * @param {Number?} port - Multicast port. - * @param {String?} gateway - Gateway type. - * @returns {Promise} Location string. - */ - -UPNP.discover = co(function* discover(host, port, gateway) { - var upnp = new UPNP(host, port, gateway); - return yield upnp.discover(); -}); - /** * Discover gateway and resolve service. * @param {String?} host - Multicast IP. @@ -320,7 +307,7 @@ UPNP.discover = co(function* discover(host, port, gateway) { * @returns {Promise} Service. */ -UPNP.resolve = co(function* resolve(host, port, gateway, targets) { +UPNP.discover = co(function* discover(host, port, gateway, targets) { var upnp = new UPNP(host, port, gateway); var location = yield upnp.discover(); var service = yield upnp.resolve(location, targets);