9 lines
229 B
Python
9 lines
229 B
Python
|
class Proxy:
|
||
|
def __init__(self, enabled: str, ip: str = None, port: str = None):
|
||
|
self.ip = ip
|
||
|
self.port = port
|
||
|
self.enabled = enabled != "-1"
|
||
|
|
||
|
def is_enabled(self):
|
||
|
return self.enabled
|
||
|
|