File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
core/src/main/java/com/github/shadowsocks/bg Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -224,8 +224,8 @@ object BaseService {
224
224
fun forceLoad () {
225
225
val (profile, fallback) = Core .currentProfile
226
226
? : return stopRunner(false , (this as Context ).getString(R .string.profile_empty))
227
- if (profile.host.isEmpty() || profile.password.isEmpty() ||
228
- fallback != null && (fallback.host.isEmpty() || fallback.password.isEmpty())) {
227
+ if (profile.host.isEmpty() || ( ! profile.method.equals( " none " ) && profile. password.isEmpty() ) ||
228
+ fallback != null && (fallback.host.isEmpty() || ( ! fallback.method.equals( " none " ) && fallback. password.isEmpty() ))) {
229
229
stopRunner(false , (this as Context ).getString(R .string.proxy_empty))
230
230
return
231
231
}
You can’t perform that action at this time.
0 commit comments