Commit e7929c60 authored by chenhuaqing's avatar chenhuaqing

fix passing args

parent dd2abac2
...@@ -101,9 +101,6 @@ class ProxyInstance(val profile: Profile, private val route: String = profile.ro ...@@ -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()) configFile.writeText(config.toString())
Timber.d("prepare start service with config: $config") Timber.d("prepare start service with config: $config")
...@@ -123,6 +120,11 @@ class ProxyInstance(val profile: Profile, private val route: String = profile.ro ...@@ -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()}") 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) { if (BuildConfig.DEBUG) {
cmd += "-v" cmd += "-v"
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