Add support for IPv6
parent
5f967891fa
commit
7c3e0ea717
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue