only take udp candidates from transport-info
This commit is contained in:
parent
890c0d5a86
commit
8ca11deb21
1 changed files with 3 additions and 0 deletions
|
@ -194,6 +194,9 @@ public class IceUdpTransportInfo extends GenericTransportInfo {
|
|||
checkNotNullNoWhitespace(component, "component");
|
||||
final String transport = this.getAttribute("protocol");
|
||||
checkNotNullNoWhitespace(transport, "protocol");
|
||||
if (!"udp".equals(transport)) {
|
||||
throw new IllegalArgumentException(String.format("'%s' is not a supported protocol", transport));
|
||||
}
|
||||
final String priority = this.getAttribute("priority");
|
||||
checkNotNullNoWhitespace(priority, "priority");
|
||||
final String connectionAddress = this.getAttribute("ip");
|
||||
|
|
Loading…
Add table
Reference in a new issue