i2pdctl: Expose I2PControl password as environment variable

This commit is contained in:
l-n-s 2018-03-04 09:46:27 -05:00
parent 8764053b51
commit cff429a18b

View file

@ -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()