For backwards compatibility, add scheme stun: to STUN server URI if missing.
This commit is contained in:
@ -94,7 +94,11 @@ class Account(val accp: String) {
|
||||
|
||||
if (mediaNat != "") res = res + ";medianat=${mediaNat}"
|
||||
|
||||
if (stunServer != "") res = res + ";stunserver=\"${stunServer}\""
|
||||
if (stunServer != "") {
|
||||
if (!stunServer.startsWith("stun") && !stunServer.startsWith("turn"))
|
||||
stunServer = "stun:$stunServer"
|
||||
res += ";stunserver=\"${stunServer}\""
|
||||
}
|
||||
|
||||
if (stunUser != "") res = res + ";stunuser=\"${stunUser}\""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user