feat: add configurable listen port

This commit is contained in:
Michel de Graaf
2025-11-02 11:50:39 +01:00
parent ff30db3e29
commit 7958fe9a29
3 changed files with 16 additions and 3 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ fn main() {
use soulseek_rs::{Client, PeerAddress};
use std::time::Duration;
let mut client = Client::new(
let mut client = Client::with_defaults(
// PeerAddress::new(String::from("server.slsknet.org"), 2242),
PeerAddress::new(String::from("127.0.0.1"), 2242),
String::from("insane_in_the_brain3"),