Skip to content

Commit

Permalink
refactor: change default bind port to iroh leet port: 11204 (#1147)
Browse files Browse the repository at this point in the history
so l33t
  • Loading branch information
b5 committed Jun 28, 2023
1 parent da85f49 commit 2901b97
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions iroh/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ const MAX_STREAMS: u64 = 10;
const HEALTH_POLL_WAIT: Duration = Duration::from_secs(1);

/// Default bind address for the node.
pub const DEFAULT_BIND_ADDR: (Ipv4Addr, u16) = (Ipv4Addr::LOCALHOST, 4433);
/// 11204 is "iroh" in leetspeak https://simple.wikipedia.org/wiki/Leet
pub const DEFAULT_BIND_ADDR: (Ipv4Addr, u16) = (Ipv4Addr::LOCALHOST, 11204);

/// How long we wait at most for some endpoints to be discovered.
const ENDPOINT_WAIT: Duration = Duration::from_secs(5);
Expand Down Expand Up @@ -166,7 +167,7 @@ where

/// Binds the node service to a different socket.
///
/// By default it binds to `127.0.0.1:4433`.
/// By default it binds to `127.0.0.1:11204`.
pub fn bind_addr(mut self, addr: SocketAddr) -> Self {
self.bind_addr = addr;
self
Expand Down

0 comments on commit 2901b97

Please sign in to comment.