Skip to content

Commit

Permalink
frontend: Add IP address to the printed location
Browse files Browse the repository at this point in the history
  • Loading branch information
bekriebel committed Nov 20, 2024
1 parent 4f78bb5 commit a1401f6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions backend/src/webrtc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,12 @@ pub async fn launch_and_run_webrtc(
// only allocate storage when sending the location since that is not very frequent
let storage_when_sending_location: String;
if send_location {
storage_when_sending_location =
format!("LOC:\t{}\n{}", &location_description, last_line);
storage_when_sending_location = format!(
"LOC:\t{} ({})\n{}",
&location_description,
public_webrtc_addr.ip(),
last_line
);
to_send = &storage_when_sending_location;
}
let send_result = rtc_server
Expand Down

0 comments on commit a1401f6

Please sign in to comment.