Commit 82a3e429 authored by Mygod's avatar Mygod

Prevent syncing custom-rules

parent b4425e3b
...@@ -311,7 +311,7 @@ class ShadowsocksNatService extends BaseService { ...@@ -311,7 +311,7 @@ class ShadowsocksNatService extends BaseService {
handleConnection() handleConnection()
if (profile.route != Acl.ALL) if (profile.route != Acl.ALL && profile.route != Acl.CUSTOM_RULES)
AclSyncJob.schedule(profile.route) AclSyncJob.schedule(profile.route)
changeState(State.CONNECTED) changeState(State.CONNECTED)
......
...@@ -145,7 +145,7 @@ class ShadowsocksVpnService extends VpnService with BaseService { ...@@ -145,7 +145,7 @@ class ShadowsocksVpnService extends VpnService with BaseService {
handleConnection() handleConnection()
changeState(State.CONNECTED) changeState(State.CONNECTED)
if (profile.route != Acl.ALL) if (profile.route != Acl.ALL && profile.route != Acl.CUSTOM_RULES)
AclSyncJob.schedule(profile.route) AclSyncJob.schedule(profile.route)
notification = new ShadowsocksNotification(this, profile.getName) notification = new ShadowsocksNotification(this, profile.getName)
......
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