Skip to content

Commit bb8a3ac

Browse files
Paul Cwolfsoftwaresystemsltd
andcommitted
fix: change default ports from 9500/9501 to 8550/8551
Avoids conflict with MinIO which uses 9500-9501. New ports: - Peer listener: 8550 - UDP discovery: 8551 Co-Authored-By: CodeWolf <paul@wolf.uk.com> Co-Authored-By: Wolf Software Systems Ltd <paul@wolf.uk.com>
1 parent d3f1bf9 commit bb8a3ac

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

wolfdisk/setup.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ if [ ! -f "/etc/wolfdisk/config.toml" ]; then
270270
case $DISCOVERY_CHOICE in
271271
2)
272272
echo ""
273-
echo -n " Enter peer addresses (comma-separated, e.g. 192.168.1.10:9500,192.168.1.11:9500): "
273+
echo -n " Enter peer addresses (comma-separated, e.g. 192.168.1.10:8550,192.168.1.11:8550): "
274274
read PEERS_INPUT < /dev/tty
275275
if [ -n "$PEERS_INPUT" ]; then
276276
# Convert comma-separated to TOML array format
@@ -282,7 +282,7 @@ if [ ! -f "/etc/wolfdisk/config.toml" ]; then
282282
# Standalone - no discovery, no peers
283283
;;
284284
*)
285-
DISCOVERY_CONFIG="discovery = \"udp://$BIND_IP:9501\""
285+
DISCOVERY_CONFIG="discovery = \"udp://$BIND_IP:8551\""
286286
;;
287287
esac
288288

@@ -302,7 +302,7 @@ if [ ! -f "/etc/wolfdisk/config.toml" ]; then
302302
[node]
303303
id = "$NODE_ID"
304304
role = "$NODE_ROLE"
305-
bind = "$BIND_IP:9500"
305+
bind = "$BIND_IP:8550"
306306
data_dir = "/var/lib/wolfdisk"
307307
308308
[cluster]
@@ -323,7 +323,7 @@ EOF
323323
echo " Configuration Summary:"
324324
echo " Node ID: $NODE_ID"
325325
echo " Role: $NODE_ROLE"
326-
echo " Bind: $BIND_IP:9500"
326+
echo " Bind: $BIND_IP:8550"
327327
echo " Mount: $MOUNT_PATH"
328328
if [ -n "$DISCOVERY_CONFIG" ]; then
329329
echo " Discovery: UDP multicast (auto)"

wolfdisk/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ fn default_role() -> NodeRole {
5050
}
5151

5252
fn default_bind() -> String {
53-
"0.0.0.0:9500".to_string()
53+
"0.0.0.0:8550".to_string()
5454
}
5555

5656
fn default_data_dir() -> PathBuf {

wolfdisk/src/network/discovery.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use tracing::{debug, info, warn};
1414
use crate::config::NodeRole;
1515

1616
/// Discovery port
17-
pub const DISCOVERY_PORT: u16 = 9501;
17+
pub const DISCOVERY_PORT: u16 = 8551;
1818

1919
/// Discovery message prefix
2020
const DISCOVERY_PREFIX: &str = "WOLFDISK";
@@ -188,7 +188,7 @@ fn run_broadcaster(
188188
];
189189

190190
// If bind address is on a specific IP (not 0.0.0.0), also broadcast to its /24 subnet
191-
// e.g. bind 10.10.10.3:9500 → broadcast to 10.10.10.255:9501
191+
// e.g. bind 10.10.10.3:8550 → broadcast to 10.10.10.255:8551
192192
if let Ok(bind_sock) = bind_address.parse::<SocketAddr>() {
193193
let ip = bind_sock.ip();
194194
if let std::net::IpAddr::V4(v4) = ip {
@@ -261,7 +261,7 @@ fn run_listener(
261261
// If the advertised address uses 0.0.0.0 (wildcard bind),
262262
// replace with the actual source IP from the UDP packet
263263
let actual_address = if msg_address.starts_with("0.0.0.0:") {
264-
let port = msg_address.strip_prefix("0.0.0.0:").unwrap_or("9500");
264+
let port = msg_address.strip_prefix("0.0.0.0:").unwrap_or("8550");
265265
let fixed = format!("{}:{}", src.ip(), port);
266266
info!("Peer {} advertised 0.0.0.0, using actual IP: {}", msg_node_id, fixed);
267267
fixed

0 commit comments

Comments
 (0)