Skip to content

Commit

Permalink
Enrich Xirsys uris with //
Browse files Browse the repository at this point in the history
  • Loading branch information
Brutus5000 committed Oct 29, 2023
1 parent aefe328 commit cd11843
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,12 @@ class XirsysSessionHandler(
Session.Server(
username = it.username,
credential = it.credential,
urls = it.urls,
urls = it.urls.map { url ->
// A sample response looks like "stun:fr-turn1.xirsys.com"
// The java URI class fails to read host and port due to the missing // after the :
// Thus we "normalize" the uri, even though it is technically valid
url.replaceFirst(":", "://")
},
),
)
}
Expand Down

0 comments on commit cd11843

Please sign in to comment.