diff options
author | Rob Austein <sra@hactrn.net> | 2007-10-22 14:26:36 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2007-10-22 14:26:36 +0000 |
commit | ffc5a1ee68f80dd3c6ac71df463bc6ba16554588 (patch) | |
tree | e9e43b4e4995dc80dee2ede5206ae1d131c1cd1d /scripts | |
parent | 8a623c97d47fb6035e5ad92824889863eb9f836a (diff) |
Multiple listener ports
svn path=/scripts/rpkid.py; revision=1185
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/rpkid.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/rpkid.py b/scripts/rpkid.py index b35ed879..e26ff30b 100755 --- a/scripts/rpkid.py +++ b/scripts/rpkid.py @@ -48,7 +48,7 @@ time.tzset() cfg_file = "re.conf" -opts,argv = getopt.getopt(sys.argv[1:], "c=h?", ["config=", "help"]) +opts,argv = getopt.getopt(sys.argv[1:], "c:h?", ["config=", "help"]) for o,a in opts: if o in ("-h", "--help", "-?"): print __doc__ @@ -80,7 +80,9 @@ gctx.https_tas = rpki.x509.X509_chain(Auto_files = gctx.cfg.multiget(gctx.cfg_ gctx.irdb_url = gctx.cfg.get(gctx.cfg_section, "irdb-url") -rpki.https.server(privateKey=gctx.https_key, certChain=gctx.https_certs, +rpki.https.server(privateKey = gctx.https_key, + certChain = gctx.https_certs, + port = int(gctx.cfg.get(gctx.cfg_section, "server-port", "4433")), handlers=(("/left-right", left_right_handler), ("/up-down/", up_down_handler), ("/cronjob", cronjob_handler))) |