Commit b4c6baca authored by Mygod's avatar Mygod

Refine code style to reduce ambiguity

parent 5ea059f3
...@@ -246,13 +246,13 @@ class VpnService : BaseVpnService(), LocalDnsService.Interface { ...@@ -246,13 +246,13 @@ class VpnService : BaseVpnService(), LocalDnsService.Interface {
cmd += "--dnsgw" cmd += "--dnsgw"
cmd += "127.0.0.1:${DataStore.portLocalDns}" cmd += "127.0.0.1:${DataStore.portLocalDns}"
} }
data.processes.start(cmd) { data.processes.start(cmd, onRestartCallback = {
try { try {
sendFd(fd) sendFd(fd)
} catch (e: ErrnoException) { } catch (e: ErrnoException) {
stopRunner(true, e.message) stopRunner(true, e.message)
} }
} })
return fd return fd
} }
......
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