Skip to content

Commit 923b0f4

Browse files
committed
fix: fixed VNC plugin password field naming and reduced vnc library log verbosity (fixes #82)
1 parent 3039f39 commit 923b0f4

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fn setup() -> Result<Options, session::Error> {
3131
unsafe {
3232
env::set_var(
3333
"RUST_LOG",
34-
"info,blocking=off,pavao=off,fast_socks5=off,actix_server=warn,rmcp=warn,smb=warn,sspi=off,tracing=warn",
34+
"info,blocking=off,pavao=off,fast_socks5=off,actix_server=warn,rmcp=warn,smb=warn,sspi=off,tracing=warn,vnc=warn",
3535
);
3636
}
3737
}

src/plugins/vnc/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,11 @@ impl Plugin for VNC {
6565
.map_err(|e| e.to_string())?;
6666

6767
if vnc.is_ok() && vnc.unwrap().finish().is_ok() {
68+
// single payload, the username field is used as the password
6869
return Ok(Some(vec![Loot::new(
6970
"vnc",
7071
&address,
71-
[
72-
("username".to_owned(), creds.username.to_owned()),
73-
("password".to_owned(), creds.password.to_owned()),
74-
],
72+
[("password".to_owned(), creds.username.to_owned())],
7573
)]));
7674
}
7775

test-servers/vnc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# vncpassword
22
docker run \
3-
-p 5901:5901 \
3+
-p 5900:5901 \
44
consol/debian-xfce-vnc

0 commit comments

Comments
 (0)