Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/services/upnp-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ function UPnPServiceFactory(

UPnPService.prototype.start = function() {
var self = this;
var endpoint = _.first(self.locations);
var endpoint = _.first(self.locations) || {
httpsEnabled: false,
address: ip.address(),
port: '8080'
};
assert.object(endpoint, 'Missing Endpoint Location');

// get the system uuid and generate the root device descriptor
Expand Down