mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
SSH - force IPv4 (use 127.0.0.1 instead of localhost)
This commit is contained in:
@@ -228,9 +228,9 @@ class SSHConnection {
|
||||
options.toPort
|
||||
);
|
||||
connection.forwardOut(
|
||||
'localhost',
|
||||
'127.0.0.1',
|
||||
options.fromPort,
|
||||
options.toHost || 'localhost',
|
||||
options.toHost || '127.0.0.1',
|
||||
options.toPort,
|
||||
(error, stream) => {
|
||||
if (error) {
|
||||
@@ -241,7 +241,7 @@ class SSHConnection {
|
||||
}
|
||||
);
|
||||
})
|
||||
.listen(options.fromPort, 'localhost', () => {
|
||||
.listen(options.fromPort, '127.0.0.1', () => {
|
||||
return resolve();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user