Skip to content

Commit

Permalink
SS/SSR only
Browse files Browse the repository at this point in the history
only allow SS/SSR node as the proxy target
  • Loading branch information
ssrlive committed Jun 19, 2022
1 parent 0e9eb78 commit 7b6e6bd
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions iShadowsocksR/ProxyListViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,18 @@ class ProxyListViewController: FormViewController {
cell.selectionStyle = .none
}).onCellSelection({ [unowned self] (cell, row) in
cell.setSelected(false, animated: true)
let proxy = row.value
if let cb = self.chooseCallback {
cb(proxy)
self.close()
}else {
if proxy?.type != .none {
self.showProxyConfiguration(proxy)
if let proxy = row.value {
if let cb = self.chooseCallback {
switch proxy.type {
case .Shadowsocks, .ShadowsocksR:
cb(proxy)
self.close()
default: break
}
} else {
if proxy.type != .None {
self.showProxyConfiguration(proxy)
}
}
}
})
Expand Down

0 comments on commit 7b6e6bd

Please sign in to comment.