bdy 1.9.43 → 1.9.44-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/distTs/package.json +1 -1
- package/distTs/src/server/ssh.js +6 -6
- package/package.json +1 -1
package/distTs/package.json
CHANGED
package/distTs/src/server/ssh.js
CHANGED
|
@@ -84,11 +84,11 @@ class ServerSsh extends events_1.default {
|
|
|
84
84
|
}
|
|
85
85
|
if (ctx.method === 'password') {
|
|
86
86
|
if (!this.checkValueSafe(Buffer.from(ctx.username), Buffer.from(this.login))) {
|
|
87
|
-
ctx.reject();
|
|
87
|
+
ctx.reject(allowed);
|
|
88
88
|
return null;
|
|
89
89
|
}
|
|
90
90
|
if (!this.checkValueSafe(Buffer.from(ctx.password), Buffer.from(this.password))) {
|
|
91
|
-
ctx.reject();
|
|
91
|
+
ctx.reject(allowed);
|
|
92
92
|
return null;
|
|
93
93
|
}
|
|
94
94
|
ctx.accept();
|
|
@@ -103,12 +103,12 @@ class ServerSsh extends events_1.default {
|
|
|
103
103
|
privateKey = resp.privateKey;
|
|
104
104
|
}
|
|
105
105
|
catch {
|
|
106
|
-
ctx.reject();
|
|
106
|
+
ctx.reject(allowed);
|
|
107
107
|
return null;
|
|
108
108
|
}
|
|
109
109
|
const verified = await this.verifyKey(ctx, keys);
|
|
110
110
|
if (!verified) {
|
|
111
|
-
ctx.reject();
|
|
111
|
+
ctx.reject(allowed);
|
|
112
112
|
return null;
|
|
113
113
|
}
|
|
114
114
|
try {
|
|
@@ -117,11 +117,11 @@ class ServerSsh extends events_1.default {
|
|
|
117
117
|
return proxyClient;
|
|
118
118
|
}
|
|
119
119
|
catch {
|
|
120
|
-
ctx.reject();
|
|
120
|
+
ctx.reject(allowed);
|
|
121
121
|
return null;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
ctx.reject();
|
|
124
|
+
ctx.reject(allowed);
|
|
125
125
|
return null;
|
|
126
126
|
}
|
|
127
127
|
localExec(stream, command, env) {
|