fix: mishaps in core initialization method
This commit is contained in:
parent
79e405797a
commit
5b5f026210
1 changed files with 4 additions and 4 deletions
|
|
@ -58,10 +58,10 @@ class LinphoneBridge {
|
||||||
do {
|
do {
|
||||||
let factory = Factory.Instance
|
let factory = Factory.Instance
|
||||||
core = try factory.createCore(configPath: nil, factoryConfigPath: nil, systemContext: nil)
|
core = try factory.createCore(configPath: nil, factoryConfigPath: nil, systemContext: nil)
|
||||||
|
|
||||||
code.ipv6Enabled = false
|
core.ipv6Enabled = false
|
||||||
core.config?.setInt("net", "ipv6", 0)
|
core.config?.setInt(section: "net", key: "ipv6", value: 0)
|
||||||
core.config?.sync()
|
try core.config?.sync()
|
||||||
|
|
||||||
// Add core listener
|
// Add core listener
|
||||||
core.addDelegate(delegate: self)
|
core.addDelegate(delegate: self)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue