Add support for IPv6

master
Håvar Aambø Fosstveit 2019-11-08 09:58:51 +01:00
parent 5f967891fa
commit 7c3e0ea717
2 changed files with 6 additions and 9 deletions

View File

@ -96,7 +96,10 @@ module.exports =
listenIps : listenIps :
[ [
// change ip to your servers IP address! // change ip to your servers IP address!
{ ip: '1.2.3.4', announcedIp: null } { ip: '0.0.0.0', announcedIp: null }
// Can have multiple listening interfaces
// { ip: '::/0', announcedIp: null }
], ],
maxIncomingBitrate : 1500000, maxIncomingBitrate : 1500000,
initialAvailableOutgoingBitrate : 1000000 initialAvailableOutgoingBitrate : 1000000

View File

@ -340,17 +340,11 @@ async function runHttpsServer()
httpsServer = spdy.createServer(tls, app); httpsServer = spdy.createServer(tls, app);
httpsServer.listen(config.listeningPort, '0.0.0.0', () => httpsServer.listen(config.listeningPort);
{
logger.info('Server running on port: ', config.listeningPort);
});
const httpServer = http.createServer(app); const httpServer = http.createServer(app);
httpServer.listen(config.listeningRedirectPort, '0.0.0.0', () => httpServer.listen(config.listeningRedirectPort);
{
logger.info('Server redirecting port: ', config.listeningRedirectPort);
});
} }
/** /**