mirror of
https://github.com/PurpleI2P/i2pd-tools.git
synced 2025-01-22 13:27:17 +01:00
i2pdctl: Expose I2PControl password as environment variable
This commit is contained in:
parent
8764053b51
commit
cff429a18b
|
@ -167,8 +167,9 @@ class I2pdctl(object):
|
|||
|
||||
def main():
|
||||
URL = os.getenv("I2PCONTROL_URL", "https://127.0.0.1:7650/")
|
||||
PASSWORD = os.getenv("I2PCONTROL_PASSWORD", "itoopie")
|
||||
|
||||
ctl = I2pdctl(I2PControl(URL))
|
||||
ctl = I2pdctl(I2PControl(URL, PASSWORD))
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
|
||||
|
|
Loading…
Reference in a new issue