Skip to content

Commit 0c495c9

Browse files
committed
Properly split
1 parent 7802f08 commit 0c495c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ impl ServerConfig {
302302
let port = parsed.port().unwrap_or(8388);
303303
let addr = format!("{}:{}", host, port);
304304

305-
let mut sp2 = account.split(':');
305+
let mut sp2 = account.splitn(2, ':');
306306
let (method, pwd) = match (sp2.next(), sp2.next()) {
307307
(Some(m), Some(p)) => (m, p),
308308
_ => panic!("Malformed input"),

0 commit comments

Comments
 (0)