node: Rename control socket
The old name, `radicle.sock` didn't tell us much about the purpose of this socket.
This commit is contained in:
parent
0b7f169c8b
commit
cf37950828
|
|
@ -155,7 +155,7 @@ remote refs in storage.
|
|||
### Connecting to your local node
|
||||
|
||||
The radicle node listens on a UNIX domain socket located at
|
||||
`$RAD_HOME/node/radicle.sock`. Make sure this file is accessible and has the
|
||||
`$RAD_HOME/node/control.sock`. Make sure this file is accessible and has the
|
||||
required permissions for your user to read and write to it.
|
||||
|
||||
### Radicle keys
|
||||
|
|
|
|||
|
|
@ -23,5 +23,5 @@ Key (hash) SHA256:UIedaL6Cxm6OUErh9GQUzzglSk7VpQlVTI1TAFB/HWA
|
|||
Key (full) ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHahWSBEpuT1ESZbynOmBNkLBSnR32Ar4woZqSV2YNH1
|
||||
Storage (git) [..]/storage
|
||||
Storage (keys) [..]/keys
|
||||
Node (socket) [..]/node/radicle.sock
|
||||
Node (socket) [..]/node/control.sock
|
||||
```
|
||||
|
|
|
|||
|
|
@ -138,10 +138,10 @@ fn all(profile: &Profile) -> anyhow::Result<()> {
|
|||
term::format::tertiary(keys_path.display()).to_string(),
|
||||
]);
|
||||
|
||||
let node_path = profile.home.node();
|
||||
let socket_path = profile.socket();
|
||||
table.push([
|
||||
term::format::style("Node (socket)").to_string(),
|
||||
term::format::tertiary(node_path.join("radicle.sock").display()).to_string(),
|
||||
term::format::tertiary(socket_path.display()).to_string(),
|
||||
]);
|
||||
|
||||
table.print();
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ use crate::storage::RefUpdate;
|
|||
pub use features::Features;
|
||||
|
||||
/// Default name for control socket file.
|
||||
pub const DEFAULT_SOCKET_NAME: &str = "radicle.sock";
|
||||
pub const DEFAULT_SOCKET_NAME: &str = "control.sock";
|
||||
/// Default radicle protocol port.
|
||||
pub const DEFAULT_PORT: u16 = 8776;
|
||||
/// Filename of routing table database under the node directory.
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
//! radicle # Secret key (PKCS 8)
|
||||
//! radicle.pub # Public key (PKCS 8)
|
||||
//! node/
|
||||
//! radicle.sock # Node control socket
|
||||
//! control.sock # Node control socket
|
||||
//!
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::{fs, io};
|
||||
|
|
|
|||
Loading…
Reference in New Issue