Proxy configuration.
| 34 | |
| 35 | # Implementation classes |
| 36 | class Socks5Configuration(): |
| 37 | """Proxy configuration.""" |
| 38 | def __init__(self): |
| 39 | self.addr = None # Bind address (must be set) |
| 40 | self.af = socket.AF_INET # Bind address family |
| 41 | self.unauth = False # Support unauthenticated |
| 42 | self.auth = False # Support authentication |
| 43 | |
| 44 | class Socks5Command(): |
| 45 | """Information about an incoming socks5 command.""" |