Skip to content

Commit

Permalink
RSDK-4755: remove hardcoded localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
ohEmily committed Sep 1, 2023
1 parent ca2a7a4 commit b379202
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/rpc/dial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,7 @@ fn infer_remote_uri_from_authority(uri: Uri) -> Uri {

fn uri_parts_with_defaults(uri: &str) -> Parts {
let mut uri_parts = uri.parse::<Uri>().unwrap().into_parts();
uri_parts.scheme = Some(Scheme::HTTP);
uri_parts.scheme = Some(Scheme::HTTPS);
uri_parts.path_and_query = Some(PathAndQuery::from_static(""));
uri_parts
}
Expand Down
3 changes: 1 addition & 2 deletions src/rpc/webrtc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ impl Options {
// TODO(RSDK-235): remove hard coding of signaling server address and prefer SRV lookup instead
let path = uri.to_string();
if path.contains(".viam.cloud") {
// Some(("app.viam.com:443".to_string(), true))
Some(("localhost:8080".to_string(), true))
Some(("app.viam.com:443".to_string(), true))
} else if path.contains(".robot.viaminternal") {
Some(("app.viaminternal:8089".to_string(), false))
} else {
Expand Down

0 comments on commit b379202

Please sign in to comment.