From cff429a18bd44916de42b36c3e7a3d7441d77d2a Mon Sep 17 00:00:00 2001 From: l-n-s Date: Sun, 4 Mar 2018 09:46:27 -0500 Subject: [PATCH] i2pdctl: Expose I2PControl password as environment variable --- scripts/i2pdctl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/i2pdctl b/scripts/i2pdctl index 7d926ae..cf07f22 100755 --- a/scripts/i2pdctl +++ b/scripts/i2pdctl @@ -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()