Commit f17ec01e authored by liusheng's avatar liusheng

Merge branch 'cc-dev' into 11a-dev

parents f4e5b448 e7929c60
......@@ -101,9 +101,6 @@ class ProxyInstance(val profile: Profile, private val route: String = profile.ro
})
}
})
if (DataStore.outboundBindInterface.isNotBlank()) {
config.put("outbound-bind-interface", DataStore.outboundBindInterface)
}
configFile.writeText(config.toString())
Timber.d("prepare start service with config: $config")
......@@ -123,6 +120,11 @@ class ProxyInstance(val profile: Profile, private val route: String = profile.ro
Timber.d("start vpn service with acl ${Acl.getFile(route).readText()}")
}
if (DataStore.outboundBindInterface.isNotBlank()) {
cmd += "--outbound-bind-interface"
cmd += DataStore.outboundBindInterface
}
if (BuildConfig.DEBUG) {
cmd += "-v"
cmd += "-v"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment