Browse Source

i2pdctl: Expose I2PControl password as environment variable

pull/42/head
l-n-s 7 years ago
parent
commit
cff429a18b
  1. 3
      scripts/i2pdctl

3
scripts/i2pdctl

@ -167,8 +167,9 @@ class I2pdctl(object): @@ -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…
Cancel
Save