extract http protocol,default value is http
(self, detail)
| 132 | return items |
| 133 | |
| 134 | def procotol_extractor(self, detail): |
| 135 | """extract http protocol,default value is http""" |
| 136 | detail = detail.lower() |
| 137 | if 'socks5' in detail: |
| 138 | protocols = ['socks5'] |
| 139 | elif 'socks4/5' in detail: |
| 140 | protocols = ['socks4', 'socks5'] |
| 141 | elif 'socks4' in detail: |
| 142 | protocols = ['socks4'] |
| 143 | else: |
| 144 | protocols = self.default_protocols |
| 145 | return protocols |
| 146 | |
| 147 | def proxy_check(self, ip, port): |
| 148 | """ |
no outgoing calls
no test coverage detected