Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
node: Rename control socket
Alexis Sellier committed 3 years ago
commit cf37950828edf1d9614a3d1eeb705cd3a6f5d41f
parent 0b7f169c8bcd51a5e01a83ec2a00fe5aea31207c
5 files changed +6 -6
modified HACKING.md
@@ -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
modified radicle-cli/examples/rad-auth.md
@@ -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
```
modified radicle-cli/src/commands/self.rs
@@ -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();
modified radicle/src/node.rs
@@ -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.
modified radicle/src/profile.rs
@@ -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};