We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
尝试在TunnelService 类里面的onStartCommand 方法里面添加stopRunner()方法但是这个方法关闭vpn后、再次连接无法访问网络 override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int { val data = data if (data.state != VpnState.State.Stopped) { Log.i("vpn状态:","关闭事件") stopRunner() return Service.START_NOT_STICKY } Log.i("vpn状态:","开启事件") try { data.proxy = TunnelInstance() } catch (e: IllegalArgumentException) { stopRunner(false, e.message) return Service.START_NOT_STICKY }
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int { val data = data if (data.state != VpnState.State.Stopped) { Log.i("vpn状态:","关闭事件") stopRunner() return Service.START_NOT_STICKY } Log.i("vpn状态:","开启事件") try { data.proxy = TunnelInstance() } catch (e: IllegalArgumentException) { stopRunner(false, e.message) return Service.START_NOT_STICKY }
The text was updated successfully, but these errors were encountered:
这个你解决了吗?@gitHubDujianfeng
Sorry, something went wrong.
jerry-bool
No branches or pull requests
尝试在TunnelService 类里面的onStartCommand 方法里面添加stopRunner()方法但是这个方法关闭vpn后、再次连接无法访问网络
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int { val data = data if (data.state != VpnState.State.Stopped) { Log.i("vpn状态:","关闭事件") stopRunner() return Service.START_NOT_STICKY } Log.i("vpn状态:","开启事件") try { data.proxy = TunnelInstance() } catch (e: IllegalArgumentException) { stopRunner(false, e.message) return Service.START_NOT_STICKY }
The text was updated successfully, but these errors were encountered: