Skip to content

Commit

Permalink
correcting
Browse files Browse the repository at this point in the history
  • Loading branch information
1majom committed Jul 10, 2024
1 parent 51e19af commit 74b8391
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 107 deletions.
103 changes: 0 additions & 103 deletions docker-compose.yml

This file was deleted.

6 changes: 3 additions & 3 deletions gen_compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ cat << EOF >> docker-compose.yml
relay${relay}:
<<: *x-moq
entrypoint: moq-relay
command: --tls-cert /etc/tls/cert --tls-key /etc/tls/key --tls-disable-verify --api http://api --node https://relay${relay} --dev --announce https://dir
command: --tls-cert /etc/tls/cert --tls-key /etc/tls/key --tls-disable-verify --api http://api --node https://relay${relay} --dev --announce https://dir --bind [::]:${relay}
depends_on:
- api
- dir
ports:
- "${relay}:443"
- "${relay}:443/udp"
- "${relay}:${relay}"
- "${relay}:${relay}/udp"
EOF
done
Expand Down
2 changes: 1 addition & 1 deletion moq-relay/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub struct Api {
impl Api {
pub fn new(url: Url, node: Url) -> Self {
let origin = moq_api::Origin { url: node.clone() };
let client: moq_api::Client = moq_api::Client::new(url, &(node).as_str().replace("https://", "").replace(":", "_").replace("/", ""));
let client: moq_api::Client = moq_api::Client::new(url, &(node).as_str().replace("https://", "").replace(":", "_").replace("/", "").replace("relay", ""));

Self { client, origin }
}
Expand Down

0 comments on commit 74b8391

Please sign in to comment.