mirror of
https://github.com/PurpleI2P/i2pd-tools.git
synced 2024-12-06 19:26:18 +01:00
i2pdctl: Expose I2PControl password as environment variable
This commit is contained in:
+2
-1
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user