1
0
mirror of https://github.com/moparisthebest/mail synced 2024-12-21 14:58:49 -05:00

Override proxy port restrictions in development mode

This commit is contained in:
Felix Hammerl 2014-12-02 14:39:40 +01:00
parent 2a6d4e0d9b
commit dafe584d48

View File

@ -122,7 +122,7 @@ io.on('connection', function(socket) {
var socketId = ++idCounter;
var tcp;
if (config.server.outboundPorts.indexOf(data.port) < 0) {
if (!development && config.server.outboundPorts.indexOf(data.port) < 0) {
log.warn('io', 'Open request to %s:%s was rejected, closing [%s:%s]', data.host, data.port, socket.conn.id, socketId);
socket.disconnect();
return;