diff --git a/ice/src/url/mod.rs b/ice/src/url/mod.rs index d55fd48f1..cda70f5b7 100644 --- a/ice/src/url/mod.rs +++ b/ice/src/url/mod.rs @@ -5,6 +5,8 @@ use std::borrow::Cow; use std::convert::From; use std::fmt; +use stun::{DEFAULT_PORT, DEFAULT_TLS_PORT}; + use crate::error::*; /// The type of server used in the ice.URL structure. @@ -166,9 +168,9 @@ impl Url { let port = if let Some(port) = raw_parts.port() { port } else if scheme == SchemeType::Stun || scheme == SchemeType::Turn { - 3478 + DEFAULT_PORT } else { - 5349 + DEFAULT_TLS_PORT }; let mut q_args = raw_parts.query_pairs();