Skip to content

Commit

Permalink
Server URL
Browse files Browse the repository at this point in the history
  • Loading branch information
windoze committed Jan 10, 2024
1 parent 379518f commit 9475e4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clip-sync-config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ impl Args {
pub fn get_server_url(&self) -> Option<String> {
if self.roles.contains(&"websocket-client".to_string()) {
if let Ok(mut url) = url::Url::parse(&self.websocket_client.server_url) {
let scheme = if url.scheme() == "wss" {
let scheme = if (url.scheme() == "wss") || url.scheme() == "https" {
"https"
} else if url.scheme() == "ws" {
} else if (url.scheme() == "ws") || url.scheme() == "http" {
"http"
} else {
return None;
Expand Down

0 comments on commit 9475e4c

Please sign in to comment.