upnp: minor.
This commit is contained in:
parent
d09ed2442c
commit
beaf9ee37e
@ -192,7 +192,7 @@ UPNP.prototype._discover = co(function* discover() {
|
||||
* @returns {Promise}
|
||||
*/
|
||||
|
||||
UPNP.prototype.handleMsg = co(function* (msg) {
|
||||
UPNP.prototype.handleMsg = co(function* handleMsg(msg) {
|
||||
var headers;
|
||||
|
||||
if (!this.socket)
|
||||
@ -220,7 +220,7 @@ UPNP.prototype.handleMsg = co(function* (msg) {
|
||||
* @returns {Promise}
|
||||
*/
|
||||
|
||||
UPNP.prototype.resolve = co(function* (location, targets) {
|
||||
UPNP.prototype.resolve = co(function* resolve(location, targets) {
|
||||
var host = parseHost(location);
|
||||
var res, xml, services, service;
|
||||
|
||||
@ -491,7 +491,7 @@ UPNPService.prototype.soapRequest = co(function* soapRequest(action, args) {
|
||||
* @returns {Promise}
|
||||
*/
|
||||
|
||||
UPNPService.prototype.getExternalIP = co(function* () {
|
||||
UPNPService.prototype.getExternalIP = co(function* getExternalIP() {
|
||||
var action = 'GetExternalIPAddress';
|
||||
var xml = yield this.soapRequest(action, []);
|
||||
var ip = findIP(xml);
|
||||
@ -510,7 +510,7 @@ UPNPService.prototype.getExternalIP = co(function* () {
|
||||
* @returns {Promise}
|
||||
*/
|
||||
|
||||
UPNPService.prototype.addPortMapping = co(function* (remote, src, dest) {
|
||||
UPNPService.prototype.addPortMapping = co(function* addPortMapping(remote, src, dest) {
|
||||
var action = 'AddPortMapping';
|
||||
var local = UPNP.getLocalIP();
|
||||
var xml, child;
|
||||
@ -544,7 +544,7 @@ UPNPService.prototype.addPortMapping = co(function* (remote, src, dest) {
|
||||
* @returns {Promise}
|
||||
*/
|
||||
|
||||
UPNPService.prototype.removePortMapping = co(function* (remote, port) {
|
||||
UPNPService.prototype.removePortMapping = co(function* removePortMapping(remote, port) {
|
||||
var action = 'DeletePortMapping';
|
||||
var xml, child;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user