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:
parent
2a6d4e0d9b
commit
dafe584d48
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user