Prevent syncing custom-rules

This commit is contained in:
Mygod
2017-01-06 16:30:41 +08:00
parent b4425e3b06
commit 82a3e429d1
2 changed files with 2 additions and 2 deletions
@@ -311,7 +311,7 @@ class ShadowsocksNatService extends BaseService {
handleConnection()
if (profile.route != Acl.ALL)
if (profile.route != Acl.ALL && profile.route != Acl.CUSTOM_RULES)
AclSyncJob.schedule(profile.route)
changeState(State.CONNECTED)
@@ -145,7 +145,7 @@ class ShadowsocksVpnService extends VpnService with BaseService {
handleConnection()
changeState(State.CONNECTED)
if (profile.route != Acl.ALL)
if (profile.route != Acl.ALL && profile.route != Acl.CUSTOM_RULES)
AclSyncJob.schedule(profile.route)
notification = new ShadowsocksNotification(this, profile.getName)