Skip to content

Commit

Permalink
Reading new cfsession pathh
Browse files Browse the repository at this point in the history
  • Loading branch information
imago-storm committed Nov 15, 2019
1 parent 7269708 commit 19fd9f7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,14 @@ fn read_sid(server: &str) -> Option<String> {
if sid_path.exists() {
Some(sid_path)
} else {
None
sid_path = path.clone();
sid_path.push(".cfsession");
if sid_path.exists() {
Some(sid_path)
}
else {
None
}
}
},
None => None
Expand Down

0 comments on commit 19fd9f7

Please sign in to comment.