Skip to content

Commit

Permalink
Change default ospd.sock to ospd-openvas.sock path
Browse files Browse the repository at this point in the history
Changes the default path of the ospd-openvas socket as it is not
ospd.sock but /var/run/ospd/ospd-openvas.sock
  • Loading branch information
nichtsfrei committed Nov 5, 2024
1 parent 011d61f commit b3b73f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rust/src/openvasd/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ pub struct OspdWrapper {
impl Default for OspdWrapper {
fn default() -> Self {
OspdWrapper {
socket: PathBuf::from("/var/run/ospd/ospd.sock"),
socket: PathBuf::from("/var/run/ospd/ospd-openvas.sock"),
read_timeout: None,
}
}
Expand Down Expand Up @@ -655,7 +655,7 @@ mod tests {
assert_eq!(config.scheduler.check_interval, Duration::from_millis(500));
assert_eq!(
config.scanner.ospd.socket,
PathBuf::from("/var/run/ospd/ospd.sock")
PathBuf::from("/var/run/ospd/ospd-openvas.sock")
);
assert!(config.scanner.ospd.read_timeout.is_none());

Expand Down

0 comments on commit b3b73f8

Please sign in to comment.