(self)
| 62 | return True |
| 63 | |
| 64 | def state_auth_needed(self): |
| 65 | ret = struct.unpack('BB', self.read_buf[0:2]) |
| 66 | if ret[0] != 1: |
| 67 | # general error |
| 68 | raise GeneralProxyError(1) |
| 69 | if ret[1] != 0: |
| 70 | # auth error |
| 71 | raise Socks5AuthError(3) |
| 72 | # all ok |
| 73 | self.set_state("auth_done", length=2) |
| 74 | return True |
| 75 | |
| 76 | def state_pre_connect(self): |
| 77 | # Get the response |
nothing calls this directly
no test coverage detected