Fixed STUN being disabled if we disable ICE
This commit is contained in:
parent
c03a30d8a9
commit
badc6034c4
1 changed files with 1 additions and 1 deletions
|
@ -592,7 +592,7 @@ public class LinphonePreferences {
|
||||||
if (getLc() == null) return;
|
if (getLc() == null) return;
|
||||||
NatPolicy nat = getOrCreateNatPolicy();
|
NatPolicy nat = getOrCreateNatPolicy();
|
||||||
nat.enableIce(enabled);
|
nat.enableIce(enabled);
|
||||||
nat.enableStun(enabled);
|
if (enabled) nat.enableStun(true);
|
||||||
getLc().setNatPolicy(nat);
|
getLc().setNatPolicy(nat);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue